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

Method addPattern

tutorials/external/catch.hpp:4625–4642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4623
4624 template<typename T>
4625 void addPattern() {
4626 std::string token = subString();
4627 for( std::size_t i = 0; i < m_escapeChars.size(); ++i )
4628 token = token.substr( 0, m_escapeChars[i]-m_start-i ) + token.substr( m_escapeChars[i]-m_start-i+1 );
4629 m_escapeChars.clear();
4630 if( startsWith( token, "exclude:" ) ) {
4631 m_exclusion = true;
4632 token = token.substr( 8 );
4633 }
4634 if( !token.empty() ) {
4635 TestSpec::PatternPtr pattern = std::make_shared<T>( token );
4636 if( m_exclusion )
4637 pattern = std::make_shared<TestSpec::ExcludedPattern>( pattern );
4638 m_currentFilter.m_patterns.emplace_back( pattern );
4639 }
4640 m_exclusion = false;
4641 m_mode = None;
4642 }
4643
4644 void addFilter();
4645 };

Callers

nothing calls this directly

Calls 5

substrMethod · 0.80
startsWithFunction · 0.70
sizeMethod · 0.45
clearMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected