Called after an assertion failure.
| 4553 | |
| 4554 | // Called after an assertion failure. |
| 4555 | void PrettyUnitTestResultPrinter::OnTestPartResult( |
| 4556 | const TestPartResult& result) { |
| 4557 | // If the test part succeeded, we don't need to do anything. |
| 4558 | if (result.type() == TestPartResult::kSuccess) |
| 4559 | return; |
| 4560 | |
| 4561 | // Print failure message from the assertion (e.g. expected this and got that). |
| 4562 | PrintTestPartResult(result); |
| 4563 | fflush(stdout); |
| 4564 | } |
| 4565 | |
| 4566 | void PrettyUnitTestResultPrinter::OnTestEnd(const TestInfo& test_info) { |
| 4567 | if (test_info.result()->Passed()) { |
no test coverage detected