MCPcopy Create free account
hub / github.com/dblalock/bolt / listTestsNamesOnly

Function listTestsNamesOnly

cpp/quantize/catch.hpp:4662–4677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4660 }
4661
4662 inline std::size_t listTestsNamesOnly( Config const& config ) {
4663 TestSpec testSpec = config.testSpec();
4664 if( !config.testSpec().hasFilters() )
4665 testSpec = TestSpecParser( ITagAliasRegistry::get() ).parse( "*" ).testSpec();
4666 std::size_t matchedTests = 0;
4667 std::vector<TestCase> matchedTestCases;
4668 getRegistryHub().getTestCaseRegistry().getFilteredTests( testSpec, config, matchedTestCases );
4669 for( std::vector<TestCase>::const_iterator it = matchedTestCases.begin(), itEnd = matchedTestCases.end();
4670 it != itEnd;
4671 ++it ) {
4672 matchedTests++;
4673 TestCaseInfo const& testCaseInfo = it->getTestCaseInfo();
4674 std::cout << testCaseInfo.name << std::endl;
4675 }
4676 return matchedTests;
4677 }
4678
4679 struct TagInfo {
4680 TagInfo() : count ( 0 ) {}

Callers 1

listFunction · 0.70

Calls 7

TestSpecParserClass · 0.70
testSpecMethod · 0.45
hasFiltersMethod · 0.45
parseMethod · 0.45
getFilteredTestsMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected