Skip to content

Commit b709ed4

Browse files
committed
python: add test
1 parent 2a5173c commit b709ed4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/ql/test/experimental/dataflow/coverage/test_builtins.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ def test_dict_get():
231231
SINK(v) #$ flow="SOURCE, l:-2 -> v"
232232
v1 = d.get("non-existing", SOURCE)
233233
SINK(v1) #$ flow="SOURCE, l:-1 -> v1"
234+
k = "k"
235+
v2 = d.get(k)
236+
SINK(v2) #$ flow="SOURCE, l:-7 -> v2"
234237

235238
@expects(2)
236239
def test_dict_popitem():

0 commit comments

Comments
 (0)