Skip to content

Commit 2aea356

Browse files
Add change note + fix tests
1 parent 6a6585e commit 2aea356

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* Additional data flow models for the builtin functions `map`, `filter`, `zip`, and `enumerate` have been added.

python/ql/test/library-tests/dataflow/coverage/test_builtins.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -573,9 +573,9 @@ def test_zip_set():
573573

574574
z = list(zip(s1,s2,s3,s4))
575575

576-
SINK(z[0][0]) #$ flow="SOURCE, l:-11 -> z[0][0]"
576+
SINK(z[0][0]) #$ flow="SOURCE, l:-7 -> z[0][0]"
577577
SINK_F(z[0][1])
578-
SINK(z[0][2]) #$ flow="SOURCE, l:-11 -> z[0][2]"
578+
SINK(z[0][2]) #$ flow="SOURCE, l:-7 -> z[0][2]"
579579
SINK_F(z[0][3])
580580

581581
@expects(8)
@@ -605,7 +605,7 @@ def test_zip_dict():
605605

606606
z = list(zip(d1,d2,d3,d4))
607607

608-
SINK(z[0][0]) #$ MISSING: flow="SOURCE, l:-11 -> z[0][0]"
608+
SINK(z[0][0]) #$ MISSING: flow="SOURCE, l:-7 -> z[0][0]"
609609
SINK_F(z[0][1])
610-
SINK(z[0][2]) #$ MISSING: flow="SOURCE, l:-11 -> z[0][2]"
610+
SINK(z[0][2]) #$ MISSING: flow="SOURCE, l:-7 -> z[0][2]"
611611
SINK_F(z[0][3])

0 commit comments

Comments
 (0)