| 9524 | |
| 9525 | |
| 9526 | GTestLog::GTestLog(GTestLogSeverity severity, const char* file, int line) |
| 9527 | : severity_(severity) { |
| 9528 | const char* const marker = |
| 9529 | severity == GTEST_INFO ? "[ INFO ]" : |
| 9530 | severity == GTEST_WARNING ? "[WARNING]" : |
| 9531 | severity == GTEST_ERROR ? "[ ERROR ]" : "[ FATAL ]"; |
| 9532 | GetStream() << ::std::endl << marker << " " |
| 9533 | << FormatFileLocation(file, line).c_str() << ": "; |
| 9534 | } |
| 9535 | |
| 9536 | // Flushes the buffers and, if severity is GTEST_FATAL, aborts the program. |
| 9537 | GTestLog::~GTestLog() { |
nothing calls this directly
no test coverage detected