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

Method matchesByFilter

extlibs/catch/include/catch/catch.hpp:14045–14056  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14043 }
14044
14045 TestSpec::Matches TestSpec::matchesByFilter( std::vector<TestCase> const& testCases, IConfig const& config ) const
14046 {
14047 Matches matches( m_filters.size() );
14048 std::transform( m_filters.begin(), m_filters.end(), matches.begin(), [&]( Filter const& filter ){
14049 std::vector<TestCase const*> currentMatches;
14050 for( auto const& test : testCases )
14051 if( isThrowSafe( test, config ) && filter.matches( test ) )
14052 currentMatches.emplace_back( &test );
14053 return FilterMatch{ filter.name(), currentMatches };
14054 } );
14055 return matches;
14056 }
14057
14058}
14059// end catch_test_spec.cpp

Callers 1

TestGroupMethod · 0.80

Calls 6

isThrowSafeFunction · 0.85
matchesMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
nameMethod · 0.45

Tested by 1

TestGroupMethod · 0.64