MCPcopy Create free account
hub / github.com/apache/singa / OnTestCaseStart

Method OnTestCaseStart

test/gtest/gtest-all.cc:4245–4256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4243}
4244
4245void PrettyUnitTestResultPrinter::OnTestCaseStart(const TestCase& test_case) {
4246 const std::string counts =
4247 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
4248 ColoredPrintf(COLOR_GREEN, "[----------] ");
4249 printf("%s from %s", counts.c_str(), test_case.name());
4250 if (test_case.type_param() == NULL) {
4251 printf("\n");
4252 } else {
4253 printf(", where %s = %s\n", kTypeParamLabel, test_case.type_param());
4254 }
4255 fflush(stdout);
4256}
4257
4258void PrettyUnitTestResultPrinter::OnTestStart(const TestInfo& test_info) {
4259 ColoredPrintf(COLOR_GREEN, "[ RUN ] ");

Callers 1

RunMethod · 0.45

Calls 4

FormatCountableNounFunction · 0.85
ColoredPrintfFunction · 0.85
test_to_run_countMethod · 0.80
nameMethod · 0.80

Tested by

no test coverage detected