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
3
3
| code/class_advanced.py:18:5:18:18 | Function arg | Qualified function name 'B.arg' is not unique. Please fix. |
4
4
| code/class_advanced.py:23:5:23:25 | Function arg | Qualified function name 'B.arg' is not unique. Please fix. |
5
5
pointsTo_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 |
11
11
| code/runtime_decision.py:18:1:18:6 | ControlFlowNode for func() | rd_bar |
12
12
| code/runtime_decision.py:18:1:18:6 | ControlFlowNode for func() | rd_foo |
13
13
| 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):
4
4
print ('A.__init__' , arg )
5
5
self .arg = arg
6
6
7
- # name:A.some_method
8
7
def some_method (self ):
9
8
print ('A.some_method' , self )
10
9
11
10
@staticmethod
12
- # name:A.some_staticmethod
13
11
def some_staticmethod ():
14
12
print ('A.some_staticmethod' )
15
13
16
14
@classmethod
17
- # name:A.some_classmethod
18
15
def some_classmethod (cls ):
19
16
print ('A.some_classmethod' , cls )
20
17
@@ -24,14 +21,9 @@ def some_classmethod(cls):
24
21
# However, current test setup uses "callable" for naming, and expects things to be Function.
25
22
a = A (42 )
26
23
27
- # calls:A.some_method
28
24
a .some_method () # $ pt=A.some_method
29
- # calls:A.some_staticmethod
30
25
a .some_staticmethod () # $ pt=A.some_staticmethod
31
- # calls:A.some_classmethod
32
26
a .some_classmethod () # $ pt=A.some_classmethod
33
27
34
- # calls:A.some_staticmethod
35
28
A .some_staticmethod () # $ pt=A.some_staticmethod
36
- # calls:A.some_classmethod
37
29
A .some_classmethod () # $ pt=A.some_classmethod
You can’t perform that action at this time.
0 commit comments