File tree Expand file tree Collapse file tree 2 files changed +5
-13
lines changed
python/ql/test/experimental/library-tests/CallGraph Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ debug_callableNotUnique
33| code/class_advanced.py:18:5:18:18 | Function arg | Qualified function name 'B.arg' is not unique. Please fix. |
44| code/class_advanced.py:23:5:23:25 | Function arg | Qualified function name 'B.arg' is not unique. Please fix. |
55pointsTo_found_typeTracker_notFound
6- | code/class_simple.py:28 :1:28 :15 | ControlFlowNode for Attribute() | A.some_method |
7- | code/class_simple.py:30 :1:30 :21 | ControlFlowNode for Attribute() | A.some_staticmethod |
8- | code/class_simple.py:32 :1:32 :20 | ControlFlowNode for Attribute() | A.some_classmethod |
9- | code/class_simple.py:35 :1:35 :21 | ControlFlowNode for Attribute() | A.some_staticmethod |
10- | code/class_simple.py:37 :1:37 :20 | ControlFlowNode for Attribute() | A.some_classmethod |
6+ | code/class_simple.py:24 :1:24 :15 | ControlFlowNode for Attribute() | A.some_method |
7+ | code/class_simple.py:25 :1:25 :21 | ControlFlowNode for Attribute() | A.some_staticmethod |
8+ | code/class_simple.py:26 :1:26 :20 | ControlFlowNode for Attribute() | A.some_classmethod |
9+ | code/class_simple.py:28 :1:28 :21 | ControlFlowNode for Attribute() | A.some_staticmethod |
10+ | code/class_simple.py:29 :1:29 :20 | ControlFlowNode for Attribute() | A.some_classmethod |
1111| code/runtime_decision.py:18:1:18:6 | ControlFlowNode for func() | rd_bar |
1212| code/runtime_decision.py:18:1:18:6 | ControlFlowNode for func() | rd_foo |
1313| code/runtime_decision.py:26:1:26:7 | ControlFlowNode for func2() | rd_bar |
Original file line number Diff line number Diff line change @@ -4,17 +4,14 @@ def __init__(self, arg):
44 print ('A.__init__' , arg )
55 self .arg = arg
66
7- # name:A.some_method
87 def some_method (self ):
98 print ('A.some_method' , self )
109
1110 @staticmethod
12- # name:A.some_staticmethod
1311 def some_staticmethod ():
1412 print ('A.some_staticmethod' )
1513
1614 @classmethod
17- # name:A.some_classmethod
1815 def some_classmethod (cls ):
1916 print ('A.some_classmethod' , cls )
2017
@@ -24,14 +21,9 @@ def some_classmethod(cls):
2421# However, current test setup uses "callable" for naming, and expects things to be Function.
2522a = A (42 )
2623
27- # calls:A.some_method
2824a .some_method () # $ pt=A.some_method
29- # calls:A.some_staticmethod
3025a .some_staticmethod () # $ pt=A.some_staticmethod
31- # calls:A.some_classmethod
3226a .some_classmethod () # $ pt=A.some_classmethod
3327
34- # calls:A.some_staticmethod
3528A .some_staticmethod () # $ pt=A.some_staticmethod
36- # calls:A.some_classmethod
3729A .some_classmethod () # $ pt=A.some_classmethod
You can’t perform that action at this time.
0 commit comments