MCPcopy Create free account
hub / github.com/apache/trafficserver / matchesByFilter

Method matchesByFilter

lib/catch2/catch.hpp:14682–14693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14680 }
14681
14682 TestSpec::Matches TestSpec::matchesByFilter( std::vector<TestCase> const& testCases, IConfig const& config ) const
14683 {
14684 Matches matches( m_filters.size() );
14685 std::transform( m_filters.begin(), m_filters.end(), matches.begin(), [&]( Filter const& filter ){
14686 std::vector<TestCase const*> currentMatches;
14687 for( auto const& test : testCases )
14688 if( isThrowSafe( test, config ) && filter.matches( test ) )
14689 currentMatches.emplace_back( &test );
14690 return FilterMatch{ filter.name(), currentMatches };
14691 } );
14692 return matches;
14693 }
14694
14695 const TestSpec::vectorStrings& TestSpec::getInvalidArgs() const{
14696 return (m_invalidArgs);

Callers 1

TestGroupMethod · 0.80

Calls 7

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

Tested by 1

TestGroupMethod · 0.64