MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / OnTestPartResult

Method OnTestPartResult

test/common/gtest/gtest.cpp:4555–4564  ·  view source on GitHub ↗

Called after an assertion failure.

Source from the content-addressed store, hash-verified

4553
4554// Called after an assertion failure.
4555void 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
4566void PrettyUnitTestResultPrinter::OnTestEnd(const TestInfo& test_info) {
4567 if (test_info.result()->Passed()) {

Callers 1

ReportTestPartResultMethod · 0.45

Calls 2

PrintTestPartResultFunction · 0.85
typeMethod · 0.45

Tested by

no test coverage detected