| 5932 | } |
| 5933 | |
| 5934 | void log_message(const MessageData& mb) override { |
| 5935 | if(mb.m_severity & assertType::is_warn) // report only failures |
| 5936 | return; |
| 5937 | |
| 5938 | DOCTEST_LOCK_MUTEX(mutex) |
| 5939 | |
| 5940 | std::ostringstream os; |
| 5941 | os << skipPathFromFilename(mb.m_file) << (opt.gnu_file_line ? ":" : "(") |
| 5942 | << line(mb.m_line) << (opt.gnu_file_line ? ":" : "):") << std::endl; |
| 5943 | |
| 5944 | os << mb.m_string.c_str() << "\n"; |
| 5945 | log_contexts(os); |
| 5946 | |
| 5947 | testCaseData.addFailure(mb.m_string.c_str(), |
| 5948 | mb.m_severity & assertType::is_check ? "FAIL_CHECK" : "FAIL", os.str()); |
| 5949 | } |
| 5950 | |
| 5951 | void test_case_skipped(const TestCaseData&) override {} |
| 5952 |
nothing calls this directly
no test coverage detected