Prints a TestPartResult.
| 4012 | |
| 4013 | // Prints a TestPartResult. |
| 4014 | static 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 |
no test coverage detected