mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: Test for unpacking assignment
This commit is contained in:
@@ -516,6 +516,14 @@ def test_swap():
|
||||
SINK(b)
|
||||
|
||||
|
||||
@expects(2)
|
||||
def test_unpacking_assignment():
|
||||
t = (SOURCE, NONSOURCE)
|
||||
a, b = t
|
||||
SINK(a) # Flow missing
|
||||
SINK_F(b)
|
||||
|
||||
|
||||
def test_deep_callgraph():
|
||||
# port of python/ql/test/library-tests/taint/general/deep.py
|
||||
|
||||
|
||||
Reference in New Issue
Block a user