Skip to content

Commit eb552b7

Browse files
committed
add failingPositiveTests to inlinetests
1 parent 0328a29 commit eb552b7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

javascript/ql/test/experimental/TypeOrm/tests.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
passingPositiveTests
12
| PASSED | SQLInjectionPoint | test.ts:19:54:19:79 | // test ... onPoint |
23
| PASSED | SQLInjectionPoint | test.ts:20:55:20:80 | // test ... onPoint |
34
| PASSED | SQLInjectionPoint | test.ts:82:70:82:95 | // test ... onPoint |
@@ -28,3 +29,4 @@
2829
| PASSED | SQLInjectionPoint | test.ts:210:28:210:53 | // test ... onPoint |
2930
| PASSED | SQLInjectionPoint | test.ts:213:56:213:81 | // test ... onPoint |
3031
| PASSED | SQLInjectionPoint | test.ts:217:56:217:81 | // test ... onPoint |
32+
failingPositiveTests

javascript/ql/test/experimental/TypeOrm/tests.ql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,10 @@ query predicate passingPositiveTests(string res, string expectation, InlineTest
2525
expectation = "SQLInjectionPoint" and
2626
exists(SQL::SqlString n | t.inNode(n))
2727
}
28+
29+
query predicate failingPositiveTests(string res, string expectation, InlineTest t) {
30+
res = "FAILED" and
31+
t.hasPositiveTest(expectation) and
32+
expectation = "SQLInjectionPoint" and
33+
not exists(SQL::SqlString n | t.inNode(n))
34+
}

0 commit comments

Comments
 (0)