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

Function listTestsNamesOnly

lib/catch2/catch.hpp:11291–11306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11289 }
11290
11291 std::size_t listTestsNamesOnly( Config const& config ) {
11292 TestSpec const& testSpec = config.testSpec();
11293 std::size_t matchedTests = 0;
11294 std::vector<TestCase> matchedTestCases = filterTests( getAllTestCasesSorted( config ), testSpec, config );
11295 for( auto const& testCaseInfo : matchedTestCases ) {
11296 matchedTests++;
11297 if( startsWith( testCaseInfo.name, '#' ) )
11298 Catch::cout() << '"' << testCaseInfo.name << '"';
11299 else
11300 Catch::cout() << testCaseInfo.name;
11301 if ( config.verbosity() >= Verbosity::High )
11302 Catch::cout() << "\t@" << testCaseInfo.lineInfo;
11303 Catch::cout() << std::endl;
11304 }
11305 return matchedTests;
11306 }
11307
11308 void TagInfo::add( std::string const& spelling ) {
11309 ++count;

Callers 1

listFunction · 0.85

Calls 4

filterTestsFunction · 0.85
startsWithFunction · 0.85
testSpecMethod · 0.80
verbosityMethod · 0.80

Tested by

no test coverage detected