MCPcopy Create free account
hub / github.com/Profactor/cv-plot / writeTestCase

Method writeTestCase

CvPlot/ext/catch2/inc/catch.hpp:16594–16614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16592 }
16593
16594 void JunitReporter::writeTestCase( TestCaseNode const& testCaseNode ) {
16595 TestCaseStats const& stats = testCaseNode.value;
16596
16597 // All test cases have exactly one section - which represents the
16598 // test case itself. That section may have 0-n nested sections
16599 assert( testCaseNode.children.size() == 1 );
16600 SectionNode const& rootSection = *testCaseNode.children.front();
16601
16602 std::string className = stats.testInfo.className;
16603
16604 if( className.empty() ) {
16605 className = fileNameTag(stats.testInfo.tags);
16606 if ( className.empty() )
16607 className = "global";
16608 }
16609
16610 if ( !m_config->name().empty() )
16611 className = m_config->name() + "." + className;
16612
16613 writeSection( className, "", rootSection );
16614 }
16615
16616 void JunitReporter::writeSection( std::string const& className,
16617 std::string const& rootName,

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected