MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / listTestsNamesOnly

Function listTestsNamesOnly

tests/catch.hpp:8936–8951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8934 }
8935
8936 std::size_t listTestsNamesOnly( Config const& config ) {
8937 TestSpec testSpec = config.testSpec();
8938 std::size_t matchedTests = 0;
8939 std::vector<TestCase> matchedTestCases = filterTests( getAllTestCasesSorted( config ), testSpec, config );
8940 for( auto const& testCaseInfo : matchedTestCases ) {
8941 matchedTests++;
8942 if( startsWith( testCaseInfo.name, '#' ) )
8943 Catch::cout() << '"' << testCaseInfo.name << '"';
8944 else
8945 Catch::cout() << testCaseInfo.name;
8946 if ( config.verbosity() >= Verbosity::High )
8947 Catch::cout() << "\t@" << testCaseInfo.lineInfo;
8948 Catch::cout() << std::endl;
8949 }
8950 return matchedTests;
8951 }
8952
8953 void TagInfo::add( std::string const& spelling ) {
8954 ++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