MCPcopy Create free account
hub / github.com/RenderKit/oidn / writeTestCase

Method writeTestCase

external/catch.hpp:16925–16945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16923 }
16924
16925 void JunitReporter::writeTestCase( TestCaseNode const& testCaseNode ) {
16926 TestCaseStats const& stats = testCaseNode.value;
16927
16928 // All test cases have exactly one section - which represents the
16929 // test case itself. That section may have 0-n nested sections
16930 assert( testCaseNode.children.size() == 1 );
16931 SectionNode const& rootSection = *testCaseNode.children.front();
16932
16933 std::string className = stats.testInfo.className;
16934
16935 if( className.empty() ) {
16936 className = fileNameTag(stats.testInfo.tags);
16937 if ( className.empty() )
16938 className = "global";
16939 }
16940
16941 if ( !m_config->name().empty() )
16942 className = m_config->name() + "." + className;
16943
16944 writeSection( className, "", rootSection );
16945 }
16946
16947 void JunitReporter::writeSection( std::string const& className,
16948 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