File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
python/ql/test/experimental/dataflow/fieldflow Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -309,6 +309,17 @@ def test_class_override():
309
309
SINK (WithTuple2 .my_tuple [0 ]) # $ MISSING: flow="SOURCE, l:-10 -> WithTuple2.my_tuple[0]"
310
310
SINK (inst .my_tuple [0 ]) # $ MISSING: flow="SOURCE, l:-11 -> inst.my_tuple[0]"
311
311
312
+
313
+ class Outer :
314
+ src = SOURCE
315
+ class Inner :
316
+ src = SOURCE
317
+
318
+ @expects (2 ) # $ unresolved_call=expects(..) unresolved_call=expects(..)(..)
319
+ def test_nested_class ():
320
+ SINK (Outer .src ) # $ flow="SOURCE, l:-6 -> Outer.src"
321
+ SINK (Outer .Inner .src ) # $ flow="SOURCE, l:-5 -> Outer.Inner.src"
322
+
312
323
# --------------------------------------
313
324
# unique classes from functions
314
325
# --------------------------------------
You can’t perform that action at this time.
0 commit comments