Called after an assertion failure.
| 4080 | |
| 4081 | // Called after an assertion failure. |
| 4082 | void PrettyUnitTestResultPrinter::OnTestPartResult( |
| 4083 | const TestPartResult& result) { |
| 4084 | // If the test part succeeded, we don't need to do anything. |
| 4085 | if (result.type() == TestPartResult::kSuccess) |
| 4086 | return; |
| 4087 | |
| 4088 | // Print failure message from the assertion (e.g. expected this and got that). |
| 4089 | PrintTestPartResult(result); |
| 4090 | fflush(stdout); |
| 4091 | } |
| 4092 | |
| 4093 | void PrettyUnitTestResultPrinter::OnTestEnd(const TestInfo& test_info) { |
| 4094 | if (test_info.result()->Passed()) { |
no test coverage detected