Skip to content

Commit b281cc8

Browse files
authored
Merge pull request #11208 from RasmusWL/call-graph-tests
Python: Test improvements in preparation for new call-graph PR
2 parents 158ea26 + 1b30cf8 commit b281cc8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+445
-1550
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ class DataFlowTest extends FlowTest {
1616
query predicate missingAnnotationOnSink(Location location, string error, string element) {
1717
error = "ERROR, you should add `# $ MISSING: flow` annotation" and
1818
exists(DataFlow::Node sink |
19+
any(TestConfiguration config).isSink(sink) and
20+
// note: we only care about `SINK` and not `SINK_F`, so we have to reconstruct manually.
1921
exists(DataFlow::CallCfgNode call |
20-
// note: we only care about `SINK` and not `SINK_F`, so we have to reconstruct manually.
2122
call.getFunction().asCfgNode().(NameNode).getId() = "SINK" and
2223
(sink = call.getArg(_) or sink = call.getArgByName(_))
2324
) and

python/ql/test/experimental/dataflow/coverage/classesCallGraph.expected

Lines changed: 0 additions & 80 deletions
This file was deleted.

python/ql/test/experimental/dataflow/coverage/classesCallGraph.ql

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)