mirror of
https://github.com/github/codeql.git
synced 2026-04-24 08:15:14 +02:00
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.
This commit is contained in:
@@ -50,6 +50,17 @@ dct2['func2']() # $ tt=func2
|
||||
dct2['contested']() # $ tt=func2 SPURIOUS: tt=func
|
||||
|
||||
|
||||
## non-precise access is not supported right now
|
||||
for k in dct2:
|
||||
dct2[k]() # $ MISSING: tt=func tt=func2
|
||||
|
||||
for v in dct2.values():
|
||||
v() # $ MISSING: tt=func tt=func2
|
||||
|
||||
for k, v in dct2.items():
|
||||
v() # $ MISSING: tt=func tt=func2
|
||||
|
||||
|
||||
def return_func_in_list():
|
||||
return [func, 42]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user