Skip to content

Commit cef933f

Browse files
RasmusWLyoff
andcommitted
Python: Add comment explaining SINK3_F(kwargs["c"]) test
Co-authored-by: yoff <[email protected]>
1 parent c099dbd commit cef933f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ def with_doublestar(**kwargs):
174174
def only_kwargs(**kwargs):
175175
SINK1(kwargs["a"])
176176
SINK2(kwargs["b"])
177+
# testing precise content tracking, that content from `a` or `b` does not end up here.
177178
SINK3_F(kwargs["c"])
178179

179180
@expects(3)
@@ -189,6 +190,7 @@ def mixed(a, **kwargs):
189190
except KeyError:
190191
print("OK")
191192
SINK2(kwargs["b"])
193+
# testing precise content tracking, that content from `a` or `b` does not end up here.
192194
SINK3_F(kwargs["c"])
193195

194196
@expects(4*3)

0 commit comments

Comments
 (0)