MCPcopy Create free account
hub / github.com/cpputest/cpputest / writeFailure

Method writeFailure

src/CppUTest/JUnitTestOutput.cpp:246–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246void JUnitTestOutput::writeFailure(JUnitTestCaseResultNode* node)
247{
248 SimpleString buf = StringFromFormat(
249 "<failure message=\"%s:%d: %s\" type=\"AssertionFailedError\">\n",
250 node->failure_->getFileName().asCharString(),
251 (int) node->failure_->getFailureLineNumber(),
252 encodeXmlText(node->failure_->getMessage()).asCharString());
253 writeToFile(buf.asCharString());
254 writeToFile("</failure>\n");
255}
256
257
258void JUnitTestOutput::writeFileEnding()

Callers

nothing calls this directly

Calls 5

StringFromFormatFunction · 0.85
asCharStringMethod · 0.80
getFileNameMethod · 0.80
getFailureLineNumberMethod · 0.80
getMessageMethod · 0.80

Tested by

no test coverage detected