| 3241 | return true; |
| 3242 | } |
| 3243 | std::string describe() const override { |
| 3244 | std::string description; |
| 3245 | description.reserve( 4 + m_matchers.size()*32 ); |
| 3246 | description += "( "; |
| 3247 | bool first = true; |
| 3248 | for( auto matcher : m_matchers ) { |
| 3249 | if( first ) |
| 3250 | first = false; |
| 3251 | else |
| 3252 | description += " and "; |
| 3253 | description += matcher->toString(); |
| 3254 | } |
| 3255 | description += " )"; |
| 3256 | return description; |
| 3257 | } |
| 3258 | |
| 3259 | MatchAllOf<ArgT>& operator && ( MatcherBase<ArgT> const& other ) { |
| 3260 | m_matchers.push_back( &other ); |