mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
Python: Rewrite call-graph tests to be inline expectation (1/2)
This adds inline expectations, next commit will remove old annotations code... but I thought it would be easier to review like this.
This commit is contained in:
@@ -25,13 +25,13 @@ class A(object):
|
||||
a = A(42)
|
||||
|
||||
# calls:A.some_method
|
||||
a.some_method()
|
||||
a.some_method() # $ pt=A.some_method
|
||||
# calls:A.some_staticmethod
|
||||
a.some_staticmethod()
|
||||
a.some_staticmethod() # $ pt=A.some_staticmethod
|
||||
# calls:A.some_classmethod
|
||||
a.some_classmethod()
|
||||
a.some_classmethod() # $ pt=A.some_classmethod
|
||||
|
||||
# calls:A.some_staticmethod
|
||||
A.some_staticmethod()
|
||||
A.some_staticmethod() # $ pt=A.some_staticmethod
|
||||
# calls:A.some_classmethod
|
||||
A.some_classmethod()
|
||||
A.some_classmethod() # $ pt=A.some_classmethod
|
||||
|
||||
Reference in New Issue
Block a user