MCPcopy Create free account
hub / github.com/Compaile/ctrack / log_message

Method log_message

test/doctest.h:5934–5949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

skipPathFromFilenameFunction · 0.85
addFailureMethod · 0.80

Tested by

no test coverage detected