MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / OnTestEnd

Method OnTestEnd

rtpose_wrapper/src/gtest/gtest-all.cpp:4093–4110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4091}
4092
4093void PrettyUnitTestResultPrinter::OnTestEnd(const TestInfo& test_info) {
4094 if (test_info.result()->Passed()) {
4095 ColoredPrintf(COLOR_GREEN, "[ OK ] ");
4096 } else {
4097 ColoredPrintf(COLOR_RED, "[ FAILED ] ");
4098 }
4099 PrintTestName(test_case_name_.c_str(), test_info.name());
4100 if (test_info.result()->Failed())
4101 PrintFullTestCommentIfPresent(test_info);
4102
4103 if (GTEST_FLAG(print_time)) {
4104 printf(" (%s ms)\n", internal::StreamableToString(
4105 test_info.result()->elapsed_time()).c_str());
4106 } else {
4107 printf("\n");
4108 }
4109 fflush(stdout);
4110}
4111
4112void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestCase& test_case) {
4113 if (!GTEST_FLAG(print_time)) return;

Callers 1

RunMethod · 0.45

Calls 6

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

Tested by

no test coverage detected