MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / InconclusiveXml

Method InconclusiveXml

test/testerrorlogger.cpp:525–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523 }
524
525 void InconclusiveXml() const {
526 // Location
527 std::list<ErrorMessage::FileLocation> locs(1, fooCpp5);
528
529 // Inconclusive error message
530 ErrorMessage msg(std::move(locs), "", Severity::error, "Programming error", "errorId", Certainty::inconclusive);
531
532 // xml version 2 error message
533 ASSERT_EQUALS(" <error id=\"errorId\" severity=\"error\" msg=\"Programming error\" verbose=\"Programming error\" inconclusive=\"true\">\n"
534 " <location file=\"foo.cpp\" line=\"5\" column=\"1\"/>\n"
535 " </error>",
536 msg.toXML());
537 }
538
539 void SerializeInconclusiveMessage() const {
540 // Inconclusive error message

Callers

nothing calls this directly

Calls 1

toXMLMethod · 0.80

Tested by

no test coverage detected