MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / writeTestCase

Method writeTestCase

tests/catch.hpp:13832–13852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13830 }
13831
13832 void JunitReporter::writeTestCase( TestCaseNode const& testCaseNode ) {
13833 TestCaseStats const& stats = testCaseNode.value;
13834
13835 // All test cases have exactly one section - which represents the
13836 // test case itself. That section may have 0-n nested sections
13837 assert( testCaseNode.children.size() == 1 );
13838 SectionNode const& rootSection = *testCaseNode.children.front();
13839
13840 std::string className = stats.testInfo.className;
13841
13842 if( className.empty() ) {
13843 className = fileNameTag(stats.testInfo.tags);
13844 if ( className.empty() )
13845 className = "global";
13846 }
13847
13848 if ( !m_config->name().empty() )
13849 className = m_config->name() + "." + className;
13850
13851 writeSection( className, "", rootSection );
13852 }
13853
13854 void JunitReporter::writeSection( std::string const& className,
13855 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