MCPcopy Create free account
hub / github.com/RenderKit/embree / filterTests

Function filterTests

tutorials/external/catch.hpp:11839–11849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11837 }
11838
11839 std::vector<TestCase> filterTests( std::vector<TestCase> const& testCases, TestSpec const& testSpec, IConfig const& config ) {
11840 std::vector<TestCase> filtered;
11841 filtered.reserve( testCases.size() );
11842 for (auto const& testCase : testCases) {
11843 if ((!testSpec.hasFilters() && !testCase.isHidden()) ||
11844 (testSpec.hasFilters() && matchTest(testCase, testSpec, config))) {
11845 filtered.push_back(testCase);
11846 }
11847 }
11848 return filtered;
11849 }
11850 std::vector<TestCase> const& getAllTestCasesSorted( IConfig const& config ) {
11851 return getRegistryHub().getTestCaseRegistry().getAllTestsSorted( config );
11852 }

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