MCPcopy Create free account
hub / github.com/Profactor/cv-plot / listTestsNamesOnly

Function listTestsNamesOnly

CvPlot/ext/catch2/inc/catch.hpp:11118–11133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11116 }
11117
11118 std::size_t listTestsNamesOnly( Config const& config ) {
11119 TestSpec testSpec = config.testSpec();
11120 std::size_t matchedTests = 0;
11121 std::vector<TestCase> matchedTestCases = filterTests( getAllTestCasesSorted( config ), testSpec, config );
11122 for( auto const& testCaseInfo : matchedTestCases ) {
11123 matchedTests++;
11124 if( startsWith( testCaseInfo.name, '#' ) )
11125 Catch::cout() << '"' << testCaseInfo.name << '"';
11126 else
11127 Catch::cout() << testCaseInfo.name;
11128 if ( config.verbosity() >= Verbosity::High )
11129 Catch::cout() << "\t@" << testCaseInfo.lineInfo;
11130 Catch::cout() << std::endl;
11131 }
11132 return matchedTests;
11133 }
11134
11135 void TagInfo::add( std::string const& spelling ) {
11136 ++count;

Callers 1

listFunction · 0.85

Calls 4

filterTestsFunction · 0.85
startsWithFunction · 0.85
testSpecMethod · 0.80
verbosityMethod · 0.80

Tested by

no test coverage detected