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

Method OnTestCaseStart

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

Source from the content-addressed store, hash-verified

4058}
4059
4060void PrettyUnitTestResultPrinter::OnTestCaseStart(const TestCase& test_case) {
4061 test_case_name_ = test_case.name();
4062 const internal::String counts =
4063 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
4064 ColoredPrintf(COLOR_GREEN, "[----------] ");
4065 printf("%s from %s", counts.c_str(), test_case_name_.c_str());
4066 if (test_case.type_param() == NULL) {
4067 printf("\n");
4068 } else {
4069 printf(", where TypeParam = %s\n", test_case.type_param());
4070 }
4071 fflush(stdout);
4072}
4073
4074void PrettyUnitTestResultPrinter::OnTestStart(const TestInfo& test_info) {
4075 ColoredPrintf(COLOR_GREEN, "[ RUN ] ");

Callers 1

RunMethod · 0.45

Calls 3

FormatCountableNounFunction · 0.85
ColoredPrintfFunction · 0.85
test_to_run_countMethod · 0.80

Tested by

no test coverage detected