Skip to content

Commit 5ff82b7

Browse files
committed
Temporarily allow TODO- prefix in inline tests
1 parent 601194e commit 5ff82b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: shared/util/codeql/util/test/InlineExpectationsTest.qll

+3-3
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,11 @@ module Make<InlineExpectationsTestSig Impl> {
347347
}
348348

349349
class FalsePositiveTestExpectation extends ValidTestExpectation {
350-
FalsePositiveTestExpectation() { this.getKnownFailure() = "SPURIOUS" }
350+
FalsePositiveTestExpectation() { this.getKnownFailure() = ["", "TODO-"] + "SPURIOUS" }
351351
}
352352

353353
class FalseNegativeTestExpectation extends ValidTestExpectation {
354-
FalseNegativeTestExpectation() { this.getKnownFailure() = "MISSING" }
354+
FalseNegativeTestExpectation() { this.getKnownFailure() = ["", "TODO-"] + "MISSING" }
355355
}
356356

357357
class InvalidTestExpectation extends Expectation, TInvalidExpectation {
@@ -529,7 +529,7 @@ private string expectationCommentPattern() { result = "\\s*\\$((?:[^/]|/[^/])*)(
529529
*/
530530
private newtype TColumn =
531531
TDefaultColumn() or
532-
TNamedColumn(string name) { name = ["MISSING", "SPURIOUS"] }
532+
TNamedColumn(string name) { name = ["", "TODO-"] + ["MISSING", "SPURIOUS"] }
533533

534534
bindingset[start, content]
535535
private int getEndOfColumnPosition(int start, string content) {

0 commit comments

Comments
 (0)