Lines Matching refs:MatchAndExplain
94 // the match result. A matcher's MatchAndExplain() method can use
117 // example, the MatchAndExplain() method of the Pointee(...) matcher
128 virtual bool MatchAndExplain(T x, MatchResultListener* listener) const = 0;
195 bool MatchAndExplain(T x, MatchResultListener* listener) const {
196 return impl_->MatchAndExplain(x, listener);
202 return MatchAndExplain(x, &dummy);
216 MatchAndExplain(x, &listener);
312 // bool MatchAndExplain(const Value& value,
348 virtual bool MatchAndExplain(T x, MatchResultListener* listener) const {
349 return impl_.MatchAndExplain(x, listener);
463 virtual bool MatchAndExplain(T x, MatchResultListener* listener) const {
464 return source_matcher_.MatchAndExplain(static_cast<U>(x), listener);
597 const bool match = matcher.MatchAndExplain(value, &inner_listener);
647 if (!matcher.MatchAndExplain(value, &listener)) {
656 // matcher's MatchAndExplain() method handles the case when
714 virtual bool MatchAndExplain(
762 virtual bool MatchAndExplain(\
798 bool MatchAndExplain(const Pointer& p,
814 bool MatchAndExplain(const Pointer& p,
870 // MatchAndExplain() takes a Super& (as opposed to const Super&)
872 virtual bool MatchAndExplain(
946 bool MatchAndExplain(ConstCharPointer s,
951 return MatchAndExplain(StringType(s), listener);
954 bool MatchAndExplain(const StringType& s,
1000 bool MatchAndExplain(ConstCharPointer s,
1002 return s != NULL && MatchAndExplain(StringType(s), listener);
1005 bool MatchAndExplain(const StringType& s,
1041 bool MatchAndExplain(ConstCharPointer s,
1043 return s != NULL && MatchAndExplain(StringType(s), listener);
1046 bool MatchAndExplain(const StringType& s,
1081 bool MatchAndExplain(ConstCharPointer s,
1083 return s != NULL && MatchAndExplain(StringType(s), listener);
1086 bool MatchAndExplain(const StringType& s,
1120 bool MatchAndExplain(const char* s,
1122 return s != NULL && MatchAndExplain(internal::string(s), listener);
1125 bool MatchAndExplain(const internal::string& s,
1176 virtual bool MatchAndExplain( \
1214 virtual bool MatchAndExplain(T x, MatchResultListener* listener) const {
1215 return !matcher_.MatchAndExplain(x, listener);
1278 virtual bool MatchAndExplain(T x, MatchResultListener* listener) const {
1282 if (!matcher1_.MatchAndExplain(x, &listener1)) {
1288 if (!matcher2_.MatchAndExplain(x, &listener2)) {
1365 virtual bool MatchAndExplain(T x, MatchResultListener* listener) const {
1369 if (matcher1_.MatchAndExplain(x, &listener1)) {
1375 if (matcher2_.MatchAndExplain(x, &listener2)) {
1439 bool MatchAndExplain(T& x, // NOLINT
1574 virtual bool MatchAndExplain(T value,
1694 virtual bool MatchAndExplain(Pointer pointer,
1734 bool MatchAndExplain(const T& value, MatchResultListener* listener) const {
1795 bool MatchAndExplain(const T&value, MatchResultListener* listener) const {
1899 virtual bool MatchAndExplain(T obj, MatchResultListener* listener) const {
1962 bool MatchAndExplain(const LhsContainer& lhs,
2061 virtual bool MatchAndExplain(LhsContainer lhs,
2079 const bool match = matcher_.MatchAndExplain(sorted_container,
2160 virtual bool MatchAndExplain(LhsContainer lhs,
2176 if (!mono_tuple_matcher_.MatchAndExplain(
2235 const bool matches = inner_matcher_.MatchAndExplain(*it, &inner_listener);
2273 virtual bool MatchAndExplain(Container container,
2302 virtual bool MatchAndExplain(Container container,
2362 virtual bool MatchAndExplain(PairType key_value,
2365 const bool match = inner_matcher_.MatchAndExplain(key_value.first,
2444 virtual bool MatchAndExplain(PairType a_pair,
2453 if (!first_matcher_.MatchAndExplain(a_pair.first,
2460 if (!second_matcher_.MatchAndExplain(a_pair.second,
2574 virtual bool MatchAndExplain(Container container,
2594 if (matchers_[i].MatchAndExplain(*it, &s)) {
3183 return SafeMatcherCast<const T&>(matcher).MatchAndExplain(value, listener);