Skip to content

Commit ae38bbe

Browse files
committed
Python: Fearlessly adding another test
in the middle of the file.
1 parent 69913c0 commit ae38bbe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def with_multiple_kw_args(a, b, c):
112112
SINK3(c)
113113

114114

115-
@expects(9)
115+
@expects(12)
116116
def test_multiple_kw_args():
117117
with_multiple_kw_args(b=arg2, c=arg3, a=arg1) #$ arg1="arg1" arg2="arg2" arg3="arg3" func=with_multiple_kw_args
118118
with_multiple_kw_args(arg1, *(arg2,), arg3) #$ arg1="arg1" func=with_multiple_kw_args MISSING: arg2="arg2" arg3="arg3"

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,11 @@ class C:
325325
a = SOURCE
326326

327327

328+
@expects(2)
328329
def test_attribute_reference():
329330
SINK(C.a) #$ MISSING:flow="SOURCE, l:-4 -> C.a"
330-
331+
c = C()
332+
SINK(c.a) #$ MISSING:flow="SOURCE, l:-6 -> c.a"
331333

332334
# overriding __getattr__ should be tested by the class coverage tests
333335

0 commit comments

Comments
 (0)