MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / PrintTestPartResult

Function PrintTestPartResult

test/common/gtest/gtest.cpp:4300–4316  ·  view source on GitHub ↗

Prints a TestPartResult.

Source from the content-addressed store, hash-verified

4298
4299// Prints a TestPartResult.
4300static void PrintTestPartResult(const TestPartResult& test_part_result) {
4301 const std::string& result =
4302 PrintTestPartResultToString(test_part_result);
4303 printf("%s\n", result.c_str());
4304 fflush(stdout);
4305 // If the test program runs in Visual Studio or a debugger, the
4306 // following statements add the test part result message to the Output
4307 // window such that the user can double-click on it to jump to the
4308 // corresponding source code location; otherwise they do nothing.
4309#if GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_MOBILE
4310 // We don't call OutputDebugString*() on Windows Mobile, as printing
4311 // to stdout is done by OutputDebugString() there already - we don't
4312 // want the same message printed twice.
4313 ::OutputDebugStringA(result.c_str());
4314 ::OutputDebugStringA("\n");
4315#endif
4316}
4317
4318// class PrettyUnitTestResultPrinter
4319

Callers 1

OnTestPartResultMethod · 0.85

Calls 1

Tested by

no test coverage detected