MCPcopy Create free account
hub / github.com/FidoProject/Fido / listTestsNamesOnly

Function listTestsNamesOnly

tests/catch.h:5330–5344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5328 }
5329
5330 inline std::size_t listTestsNamesOnly( Config const& config ) {
5331 TestSpec testSpec = config.testSpec();
5332 if( !config.testSpec().hasFilters() )
5333 testSpec = TestSpecParser( ITagAliasRegistry::get() ).parse( "*" ).testSpec();
5334 std::size_t matchedTests = 0;
5335 std::vector<TestCase> matchedTestCases = filterTests( getAllTestCasesSorted( config ), testSpec, config );
5336 for( std::vector<TestCase>::const_iterator it = matchedTestCases.begin(), itEnd = matchedTestCases.end();
5337 it != itEnd;
5338 ++it ) {
5339 matchedTests++;
5340 TestCaseInfo const& testCaseInfo = it->getTestCaseInfo();
5341 Catch::cout() << testCaseInfo.name << std::endl;
5342 }
5343 return matchedTests;
5344 }
5345
5346 struct TagInfo {
5347 TagInfo() : count ( 0 ) {}

Callers 1

listFunction · 0.85

Calls 7

TestSpecParserClass · 0.85
filterTestsFunction · 0.85
testSpecMethod · 0.80
hasFiltersMethod · 0.80
parseMethod · 0.80
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected