| 8259 | |
| 8260 | |
| 8261 | GTestLog::GTestLog(GTestLogSeverity severity, const char* file, int line) |
| 8262 | : severity_(severity) { |
| 8263 | const char* const marker = |
| 8264 | severity == GTEST_INFO ? "[ INFO ]" : |
| 8265 | severity == GTEST_WARNING ? "[WARNING]" : |
| 8266 | severity == GTEST_ERROR ? "[ ERROR ]" : "[ FATAL ]"; |
| 8267 | GetStream() << ::std::endl << marker << " " |
| 8268 | << FormatFileLocation(file, line).c_str() << ": "; |
| 8269 | } |
| 8270 | |
| 8271 | // Flushes the buffers and, if severity is GTEST_FATAL, aborts the program. |
| 8272 | GTestLog::~GTestLog() { |
nothing calls this directly
no test coverage detected