Skip to content

Commit 4f204ee

Browse files
committed
Add test for QueryResult::Map
1 parent 7593def commit 4f204ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

go/ql/test/library-tests/semmle/go/dataflow/flowsources/local/database/test_rqlite_gorqlite.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ func test_rqlite_gorqlite(conn *gorqlite.Connection, ctx context.Context, query
5555
return
5656
}
5757

58-
sink(v5) // $ hasTaintFlow="v5"
58+
r5, err := v5.Map()
59+
60+
r5Name := r5["name"]
61+
62+
sink(r5Name) // $ hasTaintFlow="r5Name"
5963

6064
v6, err := conn.QueryOneParameterizedContext(ctx, parameterize(query[0])) // $ source
6165
if err != nil {

0 commit comments

Comments
 (0)