File tree Expand file tree Collapse file tree
python/ql/test/experimental/library-tests/CallGraph-implicit-init Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ debug_missingAnnotationForCallable
22debug_nonUniqueAnnotationForCallable
33debug_missingAnnotationForCall
44expectedCallEdgeNotFound
5- | example.py:18 :1:18 :7 | afunc() | foo/bar/a.py:2:1:2:12 | Function afunc |
5+ | example.py:19 :1:19 :7 | afunc() | foo/bar/a.py:2:1:2:12 | Function afunc |
66unexpectedCallEdgeFound
Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ debug_missingAnnotationForCallable
22debug_nonUniqueAnnotationForCallable
33debug_missingAnnotationForCall
44pointsTo_found_typeTracker_notFound
5+ | example.py:22:1:22:16 | explicit_afunc() | foo_explicit/bar/a.py:2:1:2:21 | Function explicit_afunc |
56pointsTo_notFound_typeTracker_found
Original file line number Diff line number Diff line change @@ -2,5 +2,6 @@ debug_missingAnnotationForCallable
22debug_nonUniqueAnnotationForCallable
33debug_missingAnnotationForCall
44expectedCallEdgeNotFound
5- | example.py:18:1:18:7 | afunc() | foo/bar/a.py:2:1:2:12 | Function afunc |
5+ | example.py:19:1:19:7 | afunc() | foo/bar/a.py:2:1:2:12 | Function afunc |
6+ | example.py:22:1:22:16 | explicit_afunc() | foo_explicit/bar/a.py:2:1:2:21 | Function explicit_afunc |
67unexpectedCallEdgeFound
Original file line number Diff line number Diff line change 1313"""
1414
1515from foo .bar .a import afunc
16+ from foo_explicit .bar .a import explicit_afunc
1617
1718# calls:afunc
1819afunc ()
20+
21+ # calls:explicit_afunc
22+ explicit_afunc ()
Original file line number Diff line number Diff line change 1+ # name:explicit_afunc
2+ def explicit_afunc ():
3+ print ("explicit_afunc called" )
4+ return 1
You can’t perform that action at this time.
0 commit comments