InlineExpectationsTest: Add quote around missing tag

To aid with quickly scanning where the missing tag is. I just had to do
this myself looking over some test failures, and it all just blurred
into each other in the logs.

see https://github.com/github/codeql/actions/runs/3332266045/jobs/5512944867#step:5:467
This commit is contained in:
Rasmus Wriedt Larsen
2022-10-27 08:57:36 +02:00
parent 2ace10b294
commit dbd84b2d37
2 changed files with 4 additions and 4 deletions

View File

@@ -156,8 +156,8 @@ abstract class InlineExpectationsTest extends string {
not actualResult.getTag() = this.getARelevantTag() and
element = actualResult and
message =
"Tag mismatch: Actual result with tag " + actualResult.getTag() +
" that is not part of getARelevantTag()"
"Tag mismatch: Actual result with tag '" + actualResult.getTag() +
"' that is not part of getARelevantTag()"
)
or
exists(ValidExpectation expectation |

View File

@@ -1,2 +1,2 @@
| test.py:1:1:1:3 | foo | Tag mismatch: Actual result with tag foo that is not part of getARelevantTag() |
| test.py:4:1:4:3 | foo | Tag mismatch: Actual result with tag foo that is not part of getARelevantTag() |
| test.py:1:1:1:3 | foo | Tag mismatch: Actual result with tag 'foo' that is not part of getARelevantTag() |
| test.py:4:1:4:3 | foo | Tag mismatch: Actual result with tag 'foo' that is not part of getARelevantTag() |