Lines Matching refs:MatchAndExplain

101   // the match result.  A matcher's MatchAndExplain() method can use
149 // MatchAndExplain() method of the Pointee(...) matcher should
152 // Implementations of MatchAndExplain() should add an explanation of
176 virtual bool MatchAndExplain(T x, MatchResultListener* listener) const = 0;
256 bool MatchAndExplain(T x, MatchResultListener* listener) const {
257 return impl_->MatchAndExplain(x, listener);
263 return MatchAndExplain(x, &dummy);
277 MatchAndExplain(x, &listener);
425 // bool MatchAndExplain(const Value& value,
461 virtual bool MatchAndExplain(T x, MatchResultListener* listener) const {
462 return impl_.MatchAndExplain(x, listener);
576 virtual bool MatchAndExplain(T x, MatchResultListener* listener) const {
577 return source_matcher_.MatchAndExplain(static_cast<U>(x), listener);
710 const bool match = matcher.MatchAndExplain(value, &inner_listener);
756 if (!matcher.MatchAndExplain(value, &listener)) {
765 // matcher's MatchAndExplain() method handles the case when
861 virtual bool MatchAndExplain(
906 virtual bool MatchAndExplain(
980 bool MatchAndExplain(const Pointer& p,
1000 bool MatchAndExplain(const Pointer& p,
1060 // MatchAndExplain() takes a Super& (as opposed to const Super&)
1062 virtual bool MatchAndExplain(
1138 bool MatchAndExplain(CharType* s, MatchResultListener* listener) const {
1142 return MatchAndExplain(StringType(s), listener);
1150 bool MatchAndExplain(const MatcheeStringType& s,
1198 bool MatchAndExplain(CharType* s, MatchResultListener* listener) const {
1199 return s != NULL && MatchAndExplain(StringType(s), listener);
1207 bool MatchAndExplain(const MatcheeStringType& s,
1245 bool MatchAndExplain(CharType* s, MatchResultListener* listener) const {
1246 return s != NULL && MatchAndExplain(StringType(s), listener);
1254 bool MatchAndExplain(const MatcheeStringType& s,
1291 bool MatchAndExplain(CharType* s, MatchResultListener* listener) const {
1292 return s != NULL && MatchAndExplain(StringType(s), listener);
1300 bool MatchAndExplain(const MatcheeStringType& s,
1337 bool MatchAndExplain(CharType* s, MatchResultListener* listener) const {
1338 return s != NULL && MatchAndExplain(internal::string(s), listener);
1346 bool MatchAndExplain(const MatcheeStringType& s,
1400 virtual bool MatchAndExplain(
1449 virtual bool MatchAndExplain(T x, MatchResultListener* listener) const {
1450 return !matcher_.MatchAndExplain(x, listener);
1513 virtual bool MatchAndExplain(T x, MatchResultListener* listener) const {
1517 if (!matcher1_.MatchAndExplain(x, &listener1)) {
1523 if (!matcher2_.MatchAndExplain(x, &listener2)) {
1685 virtual bool MatchAndExplain(T x, MatchResultListener* listener) const {
1689 if (matcher1_.MatchAndExplain(x, &listener1)) {
1695 if (matcher2_.MatchAndExplain(x, &listener2)) {
1766 bool MatchAndExplain(T& x, // NOLINT
1921 virtual bool MatchAndExplain(T value,
2081 virtual bool MatchAndExplain(Pointer pointer,
2151 bool MatchAndExplain(From from, MatchResultListener* listener) const {
2167 bool MatchAndExplain(From& from, MatchResultListener* listener) const {
2198 bool MatchAndExplain(const T& value, MatchResultListener* listener) const {
2259 bool MatchAndExplain(const T&value, MatchResultListener* listener) const {
2370 virtual bool MatchAndExplain(T obj, MatchResultListener* listener) const {
2428 virtual bool MatchAndExplain(Container container,
2432 const bool result = size_matcher_.MatchAndExplain(size, &size_listener);
2482 virtual bool MatchAndExplain(Container container,
2493 distance_matcher_.MatchAndExplain(distance, &distance_listener);
2547 bool MatchAndExplain(const LhsContainer& lhs,
2649 virtual bool MatchAndExplain(LhsContainer lhs,
2668 const bool match = matcher_.MatchAndExplain(sorted_container,
2749 virtual bool MatchAndExplain(LhsContainer lhs,
2765 if (!mono_tuple_matcher_.MatchAndExplain(
2824 const bool matches = inner_matcher_.MatchAndExplain(*it, &inner_listener);
2862 virtual bool MatchAndExplain(Container container,
2891 virtual bool MatchAndExplain(Container container,
2951 virtual bool MatchAndExplain(PairType key_value,
2954 const bool match = inner_matcher_.MatchAndExplain(key_value.first,
3033 virtual bool MatchAndExplain(PairType a_pair,
3042 if (!first_matcher_.MatchAndExplain(a_pair.first,
3049 if (!second_matcher_.MatchAndExplain(a_pair.second,
3161 virtual bool MatchAndExplain(Container container,
3182 match = matchers_[exam_pos].MatchAndExplain(*it, &s);
3376 virtual bool MatchAndExplain(Container container,
3591 virtual bool MatchAndExplain(T x, MatchResultListener* listener) const {
3592 return mono_tuple2_matcher_.MatchAndExplain(ArgTuple(x, second_value_),
4356 return SafeMatcherCast<const T&>(matcher).MatchAndExplain(value, listener);