| 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 ) {} |
no test coverage detected