MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / listTestsNamesOnly

Function listTestsNamesOnly

Source/ThirdParty/catch2/catch.hpp:11284–11299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11282 }
11283
11284 std::size_t listTestsNamesOnly( Config const& config ) {
11285 TestSpec const& testSpec = config.testSpec();
11286 std::size_t matchedTests = 0;
11287 std::vector<TestCase> matchedTestCases = filterTests( getAllTestCasesSorted( config ), testSpec, config );
11288 for( auto const& testCaseInfo : matchedTestCases ) {
11289 matchedTests++;
11290 if( startsWith( testCaseInfo.name, '#' ) )
11291 Catch::cout() << '"' << testCaseInfo.name << '"';
11292 else
11293 Catch::cout() << testCaseInfo.name;
11294 if ( config.verbosity() >= Verbosity::High )
11295 Catch::cout() << "\t@" << testCaseInfo.lineInfo;
11296 Catch::cout() << std::endl;
11297 }
11298 return matchedTests;
11299 }
11300
11301 void TagInfo::add( std::string const& spelling ) {
11302 ++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