File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
library-tests/InlineExpectationsTest/missing-relevant-tag Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ abstract class InlineExpectationsTest extends string {
137
137
final predicate hasFailureMessage ( FailureLocatable element , string message ) {
138
138
exists ( ActualResult actualResult |
139
139
actualResult .getTest ( ) = this and
140
+ actualResult .getTag ( ) = this .getARelevantTag ( ) and
140
141
element = actualResult and
141
142
(
142
143
exists ( FalseNegativeExpectation falseNegative |
@@ -150,9 +151,18 @@ abstract class InlineExpectationsTest extends string {
150
151
)
151
152
)
152
153
or
154
+ exists ( ActualResult actualResult |
155
+ actualResult .getTest ( ) = this and
156
+ not actualResult .getTag ( ) = this .getARelevantTag ( ) and
157
+ element = actualResult and
158
+ message =
159
+ "Tag mismatch: Actual result with tag " + actualResult .getTag ( ) +
160
+ " that is not part of getARelevantTag()"
161
+ )
162
+ or
153
163
exists ( ValidExpectation expectation |
154
164
not exists ( ActualResult actualResult | expectation .matchesActualResult ( actualResult ) ) and
155
- expectation .getTag ( ) = getARelevantTag ( ) and
165
+ expectation .getTag ( ) = this . getARelevantTag ( ) and
156
166
element = expectation and
157
167
(
158
168
expectation instanceof GoodExpectation and
Original file line number Diff line number Diff line change 1
- | test.py:4:1:4:3 | foo | Unexpected result: foo=val |
1
+ | test.py:1:1:1:3 | foo | Tag mismatch: Actual result with tag foo that is not part of getARelevantTag() |
2
+ | test.py:4:1:4:3 | foo | Tag mismatch: Actual result with tag foo that is not part of getARelevantTag() |
You can’t perform that action at this time.
0 commit comments