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

Function listTestsNamesOnly

compiler/cpp/tests/catch/catch.hpp:5834–5851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 ) {}

Callers 1

listFunction · 0.85

Calls 8

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

Tested by

no test coverage detected