MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / listTestsNamesOnly

Function listTestsNamesOnly

extlibs/catch/include/catch/catch.hpp:10868–10883  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10866 }
10867
10868 std::size_t listTestsNamesOnly( Config const& config ) {
10869 TestSpec testSpec = config.testSpec();
10870 std::size_t matchedTests = 0;
10871 std::vector<TestCase> matchedTestCases = filterTests( getAllTestCasesSorted( config ), testSpec, config );
10872 for( auto const& testCaseInfo : matchedTestCases ) {
10873 matchedTests++;
10874 if( startsWith( testCaseInfo.name, '#' ) )
10875 Catch::cout() << '"' << testCaseInfo.name << '"';
10876 else
10877 Catch::cout() << testCaseInfo.name;
10878 if ( config.verbosity() >= Verbosity::High )
10879 Catch::cout() << "\t@" << testCaseInfo.lineInfo;
10880 Catch::cout() << std::endl;
10881 }
10882 return matchedTests;
10883 }
10884
10885 void TagInfo::add( std::string const& spelling ) {
10886 ++count;

Callers 1

listFunction · 0.85

Calls 4

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

Tested by

no test coverage detected