MCPcopy Create free account
hub / github.com/apache/singa / OnTestPartResult

Method OnTestPartResult

test/gtest/gtest-all.cc:4266–4275  ·  view source on GitHub ↗

Called after an assertion failure.

Source from the content-addressed store, hash-verified

4264
4265// Called after an assertion failure.
4266void 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
4277void PrettyUnitTestResultPrinter::OnTestEnd(const TestInfo& test_info) {
4278 if (test_info.result()->Passed()) {

Callers 1

ReportTestPartResultMethod · 0.45

Calls 2

PrintTestPartResultFunction · 0.85
typeMethod · 0.80

Tested by

no test coverage detected