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

Method log_assert

test/doctest.h:5919–5932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5917 void subcase_end() override {}
5918
5919 void log_assert(const AssertData& rb) override {
5920 if(!rb.m_failed) // report only failures & ignore the `success` option
5921 return;
5922
5923 DOCTEST_LOCK_MUTEX(mutex)
5924
5925 std::ostringstream os;
5926 os << skipPathFromFilename(rb.m_file) << (opt.gnu_file_line ? ":" : "(")
5927 << line(rb.m_line) << (opt.gnu_file_line ? ":" : "):") << std::endl;
5928
5929 fulltext_log_assert_to_stream(os, rb);
5930 log_contexts(os);
5931 testCaseData.addFailure(rb.m_decomp.c_str(), assertString(rb.m_at), os.str());
5932 }
5933
5934 void log_message(const MessageData& mb) override {
5935 if(mb.m_severity & assertType::is_warn) // report only failures

Callers

nothing calls this directly

Calls 3

skipPathFromFilenameFunction · 0.85
addFailureMethod · 0.80

Tested by

no test coverage detected