Skip to content

Commit e886b53

Browse files
committed
Python: CallGraph tests: remove rest of old annotations
1 parent 98bf3ad commit e886b53

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

python/ql/test/experimental/library-tests/CallGraph/InlineCallGraphTest.expected

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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. |
55
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 |
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 |

python/ql/test/experimental/library-tests/CallGraph/code/class_simple.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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.
2522
a = A(42)
2623

27-
# calls:A.some_method
2824
a.some_method() # $ pt=A.some_method
29-
# calls:A.some_staticmethod
3025
a.some_staticmethod() # $ pt=A.some_staticmethod
31-
# calls:A.some_classmethod
3226
a.some_classmethod() # $ pt=A.some_classmethod
3327

34-
# calls:A.some_staticmethod
3528
A.some_staticmethod() # $ pt=A.some_staticmethod
36-
# calls:A.some_classmethod
3729
A.some_classmethod() # $ pt=A.some_classmethod

0 commit comments

Comments
 (0)