MCPcopy Create free account
hub / github.com/axmolengine/axmol / log_assert

Method log_assert

3rdparty/doctest/doctest.cpp:2828–2841  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2826 void subcase_end() override {}
2827
2828 void log_assert(const AssertData& rb) override {
2829 if(!rb.m_failed) // report only failures & ignore the `success` option
2830 return;
2831
2832 DOCTEST_LOCK_MUTEX(mutex)
2833
2834 std::ostringstream os;
2835 os << skipPathFromFilename(rb.m_file) << (opt.gnu_file_line ? ":" : "(")
2836 << line(rb.m_line) << (opt.gnu_file_line ? ":" : "):") << std::endl;
2837
2838 fulltext_log_assert_to_stream(os, rb);
2839 log_contexts(os);
2840 testCaseData.addFailure(rb.m_decomp.c_str(), assertString(rb.m_at), os.str());
2841 }
2842
2843 void log_message(const MessageData& mb) override {
2844 if(mb.m_severity & assertType::is_warn) // report only failures

Callers

nothing calls this directly

Calls 6

skipPathFromFilenameFunction · 0.85
assertStringFunction · 0.85
addFailureMethod · 0.80
c_strMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected