Skip to content

Commit

Permalink
Add test for map literal
Browse files Browse the repository at this point in the history
  • Loading branch information
smowton authored Feb 27, 2024
1 parent 12213a0 commit e62a080
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ func main() {
sink(val) // $ hasValueFlow="val"
}
}

func testLiteral() {
someMap := map[string]string {"someKey": source()}

for _, val := range someMap {
sink(val) // $ hasValueFlow="val"
}
}

0 comments on commit e62a080

Please sign in to comment.