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

Method OnTestEnd

test/common/gtest/gtest.cpp:4566–4583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4564}
4565
4566void PrettyUnitTestResultPrinter::OnTestEnd(const TestInfo& test_info) {
4567 if (test_info.result()->Passed()) {
4568 ColoredPrintf(COLOR_GREEN, "[ OK ] ");
4569 } else {
4570 ColoredPrintf(COLOR_RED, "[ FAILED ] ");
4571 }
4572 PrintTestName(test_info.test_case_name(), test_info.name());
4573 if (test_info.result()->Failed())
4574 PrintFullTestCommentIfPresent(test_info);
4575
4576 if (GTEST_FLAG(print_time)) {
4577 printf(" (%s ms)\n", internal::StreamableToString(
4578 test_info.result()->elapsed_time()).c_str());
4579 } else {
4580 printf("\n");
4581 }
4582 fflush(stdout);
4583}
4584
4585void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestCase& test_case) {
4586 if (!GTEST_FLAG(print_time)) return;

Callers 1

RunMethod · 0.45

Calls 7

ColoredPrintfFunction · 0.85
StreamableToStringFunction · 0.85
PassedMethod · 0.80
nameMethod · 0.80
FailedMethod · 0.80
elapsed_timeMethod · 0.80

Tested by

no test coverage detected