Called after an assertion failure.
| 4264 | |
| 4265 | // Called after an assertion failure. |
| 4266 | void PrettyUnitTestResultPrinter::OnTestPartResult( |
| 4267 | const TestPartResult& result) { |
| 4268 | // If the test part succeeded, we don't need to do anything. |
| 4269 | if (result.type() == TestPartResult::kSuccess) |
| 4270 | return; |
| 4271 | |
| 4272 | // Print failure message from the assertion (e.g. expected this and got that). |
| 4273 | PrintTestPartResult(result); |
| 4274 | fflush(stdout); |
| 4275 | } |
| 4276 | |
| 4277 | void PrettyUnitTestResultPrinter::OnTestEnd(const TestInfo& test_info) { |
| 4278 | if (test_info.result()->Passed()) { |
no test coverage detected