| 2937 | return true; |
| 2938 | } |
| 2939 | std::string describe() const override { |
| 2940 | std::string description; |
| 2941 | description.reserve( 4 + m_matchers.size()*32 ); |
| 2942 | description += "( "; |
| 2943 | bool first = true; |
| 2944 | for( auto matcher : m_matchers ) { |
| 2945 | if( first ) |
| 2946 | first = false; |
| 2947 | else |
| 2948 | description += " and "; |
| 2949 | description += matcher->toString(); |
| 2950 | } |
| 2951 | description += " )"; |
| 2952 | return description; |
| 2953 | } |
| 2954 | |
| 2955 | MatchAllOf<ArgT>& operator && ( MatcherBase<ArgT> const& other ) { |
| 2956 | m_matchers.push_back( &other ); |