| 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 |