| 2123 | |
| 2124 | template <typename ArgT> struct MatchAllOf : MatcherBase<ArgT> { |
| 2125 | bool match(ArgT const &arg) const override { |
| 2126 | for (auto matcher : m_matchers) { |
| 2127 | if (!matcher->match(arg)) |
| 2128 | return false; |
| 2129 | } |
| 2130 | return true; |
| 2131 | } |
| 2132 | std::string describe() const override { |
| 2133 | std::string description; |
| 2134 | description.reserve(4 + m_matchers.size() * 32); |