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

Function PrintTestPartResult

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

Prints a TestPartResult.

Source from the content-addressed store, hash-verified

3829
3830// Prints a TestPartResult.
3831static void PrintTestPartResult(const TestPartResult& test_part_result) {
3832 const internal::String& result =
3833 PrintTestPartResultToString(test_part_result);
3834 printf("%s\n", result.c_str());
3835 fflush(stdout);
3836 // If the test program runs in Visual Studio or a debugger, the
3837 // following statements add the test part result message to the Output
3838 // window such that the user can double-click on it to jump to the
3839 // corresponding source code location; otherwise they do nothing.
3840#if GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_MOBILE
3841 // We don't call OutputDebugString*() on Windows Mobile, as printing
3842 // to stdout is done by OutputDebugString() there already - we don't
3843 // want the same message printed twice.
3844 ::OutputDebugStringA(result.c_str());
3845 ::OutputDebugStringA("\n");
3846#endif
3847}
3848
3849// class PrettyUnitTestResultPrinter
3850

Callers 1

OnTestPartResultMethod · 0.85

Calls 1

Tested by

no test coverage detected