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

Function PrintTestPartResult

test/gtest/gtest-all.cc:4014–4030  ·  view source on GitHub ↗

Prints a TestPartResult.

Source from the content-addressed store, hash-verified

4012
4013// Prints a TestPartResult.
4014static void PrintTestPartResult(const TestPartResult& test_part_result) {
4015 const std::string& result =
4016 PrintTestPartResultToString(test_part_result);
4017 printf("%s\n", result.c_str());
4018 fflush(stdout);
4019 // If the test program runs in Visual Studio or a debugger, the
4020 // following statements add the test part result message to the Output
4021 // window such that the user can double-click on it to jump to the
4022 // corresponding source code location; otherwise they do nothing.
4023#if GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_MOBILE
4024 // We don't call OutputDebugString*() on Windows Mobile, as printing
4025 // to stdout is done by OutputDebugString() there already - we don't
4026 // want the same message printed twice.
4027 ::OutputDebugStringA(result.c_str());
4028 ::OutputDebugStringA("\n");
4029#endif
4030}
4031
4032// class PrettyUnitTestResultPrinter
4033

Callers 1

OnTestPartResultMethod · 0.85

Calls 1

Tested by

no test coverage detected