MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / log_message

Method log_message

tests/framework/src/doctest.cpp:2536–2549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2534 }
2535
2536 void log_message(const MessageData& mb) override {
2537 DOCTEST_LOCK_MUTEX(mutex)
2538
2539 xml.startElement("Message")
2540 .writeAttribute("type", failureString(mb.m_severity))
2541 .writeAttribute("filename", skipPathFromFilename(mb.m_file))
2542 .writeAttribute("line", line(mb.m_line));
2543
2544 xml.scopedElement("Text").writeText(mb.m_string.c_str());
2545
2546 log_contexts();
2547
2548 xml.endElement();
2549 }
2550
2551 void test_case_skipped(const TestCaseData& in) override {
2552 if(opt.no_skipped_summary == false) {

Callers

nothing calls this directly

Calls 5

failureStringFunction · 0.85
skipPathFromFilenameFunction · 0.85
scopedElementMethod · 0.80
lineClass · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected