| 182 | } |
| 183 | |
| 184 | void TestTestingFixture::checkTestFailsWithProperTestLocation(const char* text, const char* file, size_t line) |
| 185 | { |
| 186 | if (getFailureCount() != 1) |
| 187 | FAIL_LOCATION(StringFromFormat("Expected one test failure, but got %d amount of test failures", (int) getFailureCount()).asCharString(), file, line); |
| 188 | |
| 189 | STRCMP_CONTAINS_LOCATION(text, output_->getOutput().asCharString(), "", file, line); |
| 190 | |
| 191 | if (lineOfCodeExecutedAfterCheck) |
| 192 | FAIL_LOCATION("The test should jump/throw on failure and not execute the next line. However, the next line was executed.", file, line); |
| 193 | } |
| 194 |
nothing calls this directly
no test coverage detected