MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / filterTests

Function filterTests

extern/Catch2/catch.hpp:14287–14297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14285 }
14286
14287 std::vector<TestCase> filterTests( std::vector<TestCase> const& testCases, TestSpec const& testSpec, IConfig const& config ) {
14288 std::vector<TestCase> filtered;
14289 filtered.reserve( testCases.size() );
14290 for (auto const& testCase : testCases) {
14291 if ((!testSpec.hasFilters() && !testCase.isHidden()) ||
14292 (testSpec.hasFilters() && matchTest(testCase, testSpec, config))) {
14293 filtered.push_back(testCase);
14294 }
14295 }
14296 return filtered;
14297 }
14298 std::vector<TestCase> const& getAllTestCasesSorted( IConfig const& config ) {
14299 return getRegistryHub().getTestCaseRegistry().getAllTestsSorted( config );
14300 }

Callers 3

listTestsFunction · 0.85
listTestsNamesOnlyFunction · 0.85
listTagsFunction · 0.85

Calls 6

matchTestFunction · 0.85
hasFiltersMethod · 0.80
isHiddenMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected