MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / writeTestCase

Method writeTestCase

extlibs/catch/include/catch/catch.hpp:16094–16114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16092 }
16093
16094 void JunitReporter::writeTestCase( TestCaseNode const& testCaseNode ) {
16095 TestCaseStats const& stats = testCaseNode.value;
16096
16097 // All test cases have exactly one section - which represents the
16098 // test case itself. That section may have 0-n nested sections
16099 assert( testCaseNode.children.size() == 1 );
16100 SectionNode const& rootSection = *testCaseNode.children.front();
16101
16102 std::string className = stats.testInfo.className;
16103
16104 if( className.empty() ) {
16105 className = fileNameTag(stats.testInfo.tags);
16106 if ( className.empty() )
16107 className = "global";
16108 }
16109
16110 if ( !m_config->name().empty() )
16111 className = m_config->name() + "." + className;
16112
16113 writeSection( className, "", rootSection );
16114 }
16115
16116 void JunitReporter::writeSection( std::string const& className,
16117 std::string const& rootName,

Callers

nothing calls this directly

Calls 4

fileNameTagFunction · 0.85
sizeMethod · 0.45
emptyMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected