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

Method log_message

test/doctest.h:5651–5664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5649 }
5650
5651 void log_message(const MessageData& mb) override {
5652 DOCTEST_LOCK_MUTEX(mutex)
5653
5654 xml.startElement("Message")
5655 .writeAttribute("type", failureString(mb.m_severity))
5656 .writeAttribute("filename", skipPathFromFilename(mb.m_file))
5657 .writeAttribute("line", line(mb.m_line));
5658
5659 xml.scopedElement("Text").writeText(mb.m_string.c_str());
5660
5661 log_contexts();
5662
5663 xml.endElement();
5664 }
5665
5666 void test_case_skipped(const TestCaseData& in) override {
5667 if(opt.no_skipped_summary == false) {

Callers

nothing calls this directly

Calls 3

failureStringFunction · 0.85
skipPathFromFilenameFunction · 0.85
scopedElementMethod · 0.80

Tested by

no test coverage detected