| 5832 | } |
| 5833 | |
| 5834 | inline std::size_t listTestsNamesOnly( Config const& config ) { |
| 5835 | TestSpec testSpec = config.testSpec(); |
| 5836 | if( !config.testSpec().hasFilters() ) |
| 5837 | testSpec = TestSpecParser( ITagAliasRegistry::get() ).parse( "*" ).testSpec(); |
| 5838 | std::size_t matchedTests = 0; |
| 5839 | std::vector<TestCase> matchedTestCases = filterTests( getAllTestCasesSorted( config ), testSpec, config ); |
| 5840 | for( std::vector<TestCase>::const_iterator it = matchedTestCases.begin(), itEnd = matchedTestCases.end(); |
| 5841 | it != itEnd; |
| 5842 | ++it ) { |
| 5843 | matchedTests++; |
| 5844 | TestCaseInfo const& testCaseInfo = it->getTestCaseInfo(); |
| 5845 | if( startsWith( testCaseInfo.name, '#' ) ) |
| 5846 | Catch::cout() << '"' << testCaseInfo.name << '"' << std::endl; |
| 5847 | else |
| 5848 | Catch::cout() << testCaseInfo.name << std::endl; |
| 5849 | } |
| 5850 | return matchedTests; |
| 5851 | } |
| 5852 | |
| 5853 | struct TagInfo { |
| 5854 | TagInfo() : count ( 0 ) {} |
no test coverage detected