Skip to content

Commit c4a385f

Browse files
authored
Merge pull request #19817 from d10c/d10c/convert-tests-to-qlref
Convert remaining `{go,swift,ruby}-code-scanning.qls` query tests to `.qlref`
2 parents afcd8c3 + 35a48e7 commit c4a385f

Some content is hidden

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

42 files changed

+1375
-645
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* @kind test-postprocess
3+
* @description Remove the query predicates that differ based on 32/64-bit architecture. This should leave behind `invalidModelRowAdd` and `testFailures` in case of test failures.
4+
*/
5+
6+
/**
7+
* The input test results: query predicate `relation` contains `data` at (`row`, `column`).
8+
*/
9+
external private predicate queryResults(string relation, int row, int column, string data);
10+
11+
/** Holds if the test output's query predicate `relation` contains `data` at (`row`, `column`). */
12+
query predicate results(string relation, int row, int column, string data) {
13+
queryResults(relation, row, column, data) and
14+
not relation in ["#select", "nodes", "edges"]
15+
}
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
invalidModelRow
2-
testFailures

0 commit comments

Comments
 (0)