We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89cba21 commit aaddd36Copy full SHA for aaddd36
python/ql/test/experimental/dataflow/typetracking/attribute_tests.py
@@ -39,6 +39,16 @@ def test_set_x():
39
set_foo(x) # $ MISSING: tracked=foo
40
print(x.foo) # $ MISSING: tracked=foo tracked
41
42
+# return from a different function
43
+def create_with_foo():
44
+ x = SomeClass() # $ tracked=foo
45
+ x.foo = tracked # $ tracked=foo tracked
46
+ return x # $ tracked=foo
47
+
48
+def test_create_with_foo():
49
+ x = create_with_foo() # $ tracked=foo
50
+ print(x.foo) # $ tracked=foo tracked
51
52
# ------------------------------------------------------------------------------
53
# Attributes assigned statically to a class
54
0 commit comments