Skip to content

Commit e650df8

Browse files
committed
Python: Accept consistency changes.
1 parent 924854c commit e650df8

File tree

25 files changed

+77
-0
lines changed

25 files changed

+77
-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
@@ -39,4 +39,8 @@ private class MyConsistencyConfiguration extends ConsistencyConfiguration {
3939
override predicate uniqueCallEnclosingCallableExclude(DataFlowCall call) {
4040
not exists(call.getLocation().getFile().getRelativePath())
4141
}
42+
43+
override predicate identityLocalStepExclude(Node n) {
44+
not exists(n.getLocation().getFile().getRelativePath())
45+
}
4246
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ viableImplInCallContextTooLarge
2323
uniqueParameterNodeAtPosition
2424
uniqueParameterNodePosition
2525
uniqueContentApprox
26+
identityLocalStep

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ viableImplInCallContextTooLarge
2323
uniqueParameterNodeAtPosition
2424
uniqueParameterNodePosition
2525
uniqueContentApprox
26+
identityLocalStep

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ viableImplInCallContextTooLarge
2727
uniqueParameterNodeAtPosition
2828
uniqueParameterNodePosition
2929
uniqueContentApprox
30+
identityLocalStep

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ viableImplInCallContextTooLarge
2323
uniqueParameterNodeAtPosition
2424
uniqueParameterNodePosition
2525
uniqueContentApprox
26+
identityLocalStep

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,17 @@ viableImplInCallContextTooLarge
2525
uniqueParameterNodeAtPosition
2626
uniqueParameterNodePosition
2727
uniqueContentApprox
28+
identityLocalStep
29+
| datamodel.py:84:15:84:15 | ControlFlowNode for x | Node steps to itself |
30+
| datamodel.py:166:11:166:11 | ControlFlowNode for x | Node steps to itself |
31+
| test.py:103:10:103:15 | ControlFlowNode for SOURCE | Node steps to itself |
32+
| test.py:130:10:130:15 | ControlFlowNode for SOURCE | Node steps to itself |
33+
| test.py:162:13:162:18 | ControlFlowNode for SOURCE | Node steps to itself |
34+
| test.py:167:13:167:18 | ControlFlowNode for SOURCE | Node steps to itself |
35+
| test.py:216:10:216:15 | ControlFlowNode for SOURCE | Node steps to itself |
36+
| test.py:242:9:242:12 | ControlFlowNode for SINK | Node steps to itself |
37+
| test.py:669:9:669:12 | ControlFlowNode for SINK | Node steps to itself |
38+
| test.py:670:9:670:14 | ControlFlowNode for SINK_F | Node steps to itself |
39+
| test.py:678:9:678:12 | ControlFlowNode for SINK | Node steps to itself |
40+
| test.py:686:9:686:12 | ControlFlowNode for SINK | Node steps to itself |
41+
| test.py:692:5:692:8 | ControlFlowNode for SINK | Node steps to itself |

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ viableImplInCallContextTooLarge
2323
uniqueParameterNodeAtPosition
2424
uniqueParameterNodePosition
2525
uniqueContentApprox
26+
identityLocalStep

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ viableImplInCallContextTooLarge
2323
uniqueParameterNodeAtPosition
2424
uniqueParameterNodePosition
2525
uniqueContentApprox
26+
identityLocalStep

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ viableImplInCallContextTooLarge
2323
uniqueParameterNodeAtPosition
2424
uniqueParameterNodePosition
2525
uniqueContentApprox
26+
identityLocalStep

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ viableImplInCallContextTooLarge
2323
uniqueParameterNodeAtPosition
2424
uniqueParameterNodePosition
2525
uniqueContentApprox
26+
identityLocalStep

0 commit comments

Comments
 (0)