Skip to content

Commit 404ead8

Browse files
committed
Python: Update expected test output
1 parent b3ef1e9 commit 404ead8

File tree

25 files changed

+103
-0
lines changed

25 files changed

+103
-0
lines changed

python/ql/test/experimental/dataflow/TestUtil/DataFlowConsistency.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,8 @@ private class MyConsistencyConfiguration extends ConsistencyConfiguration {
4444
param = func.getArgByName(_)
4545
)
4646
}
47+
48+
override predicate uniqueCallEnclosingCallableExclude(DataFlowCall call) {
49+
not exists(call.getLocation().getFile().getRelativePath())
50+
}
4751
}

python/ql/test/experimental/dataflow/basic/dataflow-consistency.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
uniqueEnclosingCallable
2+
uniqueCallEnclosingCallable
23
uniqueType
34
uniqueNodeLocation
45
missingLocation

python/ql/test/experimental/dataflow/callgraph_crosstalk/dataflow-consistency.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
uniqueEnclosingCallable
2+
uniqueCallEnclosingCallable
23
uniqueType
34
uniqueNodeLocation
45
missingLocation

python/ql/test/experimental/dataflow/calls/dataflow-consistency.expected

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
uniqueEnclosingCallable
2+
uniqueCallEnclosingCallable
3+
| new_cls_param.py:14:6:14:16 | classmethod() | Call should have one enclosing callable but has 0. |
4+
| test.py:21:6:21:17 | staticmethod() | Call should have one enclosing callable but has 0. |
5+
| test.py:25:6:25:16 | classmethod() | Call should have one enclosing callable but has 0. |
6+
| test.py:29:6:29:16 | classmethod() | Call should have one enclosing callable but has 0. |
27
uniqueType
38
uniqueNodeLocation
49
missingLocation

python/ql/test/experimental/dataflow/consistency/dataflow-consistency.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
uniqueEnclosingCallable
2+
uniqueCallEnclosingCallable
23
uniqueType
34
uniqueNodeLocation
45
missingLocation

python/ql/test/experimental/dataflow/coverage/dataflow-consistency.expected

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
uniqueEnclosingCallable
2+
uniqueCallEnclosingCallable
3+
| datamodel.py:71:6:71:16 | classmethod() | Call should have one enclosing callable but has 0. |
4+
| datamodel.py:76:6:76:17 | staticmethod() | Call should have one enclosing callable but has 0. |
25
uniqueType
36
uniqueNodeLocation
47
missingLocation

python/ql/test/experimental/dataflow/exceptions/dataflow-consistency.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
uniqueEnclosingCallable
2+
uniqueCallEnclosingCallable
23
uniqueType
34
uniqueNodeLocation
45
missingLocation

python/ql/test/experimental/dataflow/fieldflow/dataflow-consistency.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
uniqueEnclosingCallable
2+
uniqueCallEnclosingCallable
23
uniqueType
34
uniqueNodeLocation
45
missingLocation

python/ql/test/experimental/dataflow/global-flow/dataflow-consistency.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
uniqueEnclosingCallable
2+
uniqueCallEnclosingCallable
23
uniqueType
34
uniqueNodeLocation
45
missingLocation

python/ql/test/experimental/dataflow/match/dataflow-consistency.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
uniqueEnclosingCallable
2+
uniqueCallEnclosingCallable
23
uniqueType
34
uniqueNodeLocation
45
missingLocation

0 commit comments

Comments
 (0)