MCPcopy Create free account
hub / github.com/RenderKit/embree / listTestsNamesOnly

Function listTestsNamesOnly

tutorials/external/catch.hpp:9162–9177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9160 }
9161
9162 std::size_t listTestsNamesOnly( Config const& config ) {
9163 TestSpec testSpec = config.testSpec();
9164 std::size_t matchedTests = 0;
9165 std::vector<TestCase> matchedTestCases = filterTests( getAllTestCasesSorted( config ), testSpec, config );
9166 for( auto const& testCaseInfo : matchedTestCases ) {
9167 matchedTests++;
9168 if( startsWith( testCaseInfo.name, '#' ) )
9169 Catch::cout() << '"' << testCaseInfo.name << '"';
9170 else
9171 Catch::cout() << testCaseInfo.name;
9172 if ( config.verbosity() >= Verbosity::High )
9173 Catch::cout() << "\t@" << testCaseInfo.lineInfo;
9174 Catch::cout() << std::endl;
9175 }
9176 return matchedTests;
9177 }
9178
9179 void TagInfo::add( std::string const& spelling ) {
9180 ++count;

Callers 1

listFunction · 0.85

Calls 4

filterTestsFunction · 0.85
testSpecMethod · 0.80
startsWithFunction · 0.70
verbosityMethod · 0.45

Tested by

no test coverage detected