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

Method OnTestCaseEnd

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

Source from the content-addressed store, hash-verified

4110}
4111
4112void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestCase& test_case) {
4113 if (!GTEST_FLAG(print_time)) return;
4114
4115 test_case_name_ = test_case.name();
4116 const internal::String counts =
4117 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
4118 ColoredPrintf(COLOR_GREEN, "[----------] ");
4119 printf("%s from %s (%s ms total)\n\n",
4120 counts.c_str(), test_case_name_.c_str(),
4121 internal::StreamableToString(test_case.elapsed_time()).c_str());
4122 fflush(stdout);
4123}
4124
4125void PrettyUnitTestResultPrinter::OnEnvironmentsTearDownStart(
4126 const UnitTest& /*unit_test*/) {

Callers 1

RunMethod · 0.45

Calls 5

FormatCountableNounFunction · 0.85
ColoredPrintfFunction · 0.85
StreamableToStringFunction · 0.85
test_to_run_countMethod · 0.80
elapsed_timeMethod · 0.80

Tested by

no test coverage detected