MCPcopy Create free account
hub / github.com/apache/trafficserver / writeTestCase

Method writeTestCase

lib/catch2/catch.hpp:16948–16968  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16946 }
16947
16948 void JunitReporter::writeTestCase( TestCaseNode const& testCaseNode ) {
16949 TestCaseStats const& stats = testCaseNode.value;
16950
16951 // All test cases have exactly one section - which represents the
16952 // test case itself. That section may have 0-n nested sections
16953 assert( testCaseNode.children.size() == 1 );
16954 SectionNode const& rootSection = *testCaseNode.children.front();
16955
16956 std::string className = stats.testInfo.className;
16957
16958 if( className.empty() ) {
16959 className = fileNameTag(stats.testInfo.tags);
16960 if ( className.empty() )
16961 className = "global";
16962 }
16963
16964 if ( !m_config->name().empty() )
16965 className = m_config->name() + "." + className;
16966
16967 writeSection( className, "", rootSection, stats.testInfo.okToFail() );
16968 }
16969
16970 void JunitReporter::writeSection( std::string const& className,
16971 std::string const& rootName,

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected