Skip to content

Commit fa0c4e1

Browse files
committed
Python: Expand dict-content tt test even more
While it might be useful to track content to any lookup, it's not something we do right now.
1 parent 4d78762 commit fa0c4e1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

python/ql/test/experimental/library-tests/CallGraph/code/func_ref_in_content.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@ def return_func_in_dict_update():
5050
dct2['contested']() # $ tt=func2 SPURIOUS: tt=func
5151

5252

53+
## non-precise access is not supported right now
54+
for k in dct2:
55+
dct2[k]() # $ MISSING: tt=func tt=func2
56+
57+
for v in dct2.values():
58+
v() # $ MISSING: tt=func tt=func2
59+
60+
for k, v in dct2.items():
61+
v() # $ MISSING: tt=func tt=func2
62+
63+
5364
def return_func_in_list():
5465
return [func, 42]
5566

0 commit comments

Comments
 (0)