Lines Matching defs:matches

74 // used by a matcher to explain why a value matches or doesn't match.
145 // Returns true iff the matcher matches x; also explains the match
254 // Returns true iff the matcher matches x; also explains the match
260 // Returns true iff this matcher matches x.
274 // Explains why x matches, or doesn't match, the matcher.
314 // object that can check whether a value of type T matches. The
669 // A<T>() returns a matcher that matches any value of type T.
729 // iff the first N fields of matcher_tuple matches the first N
868 *os << "never matches";
872 // Implements _, a matcher that matches any value of any
975 // Implements the polymorphic IsNull() matcher, which matches any raw or smart
995 // Implements the polymorphic NotNull() matcher, which matches any raw or smart
1015 // Ref(variable) matches any argument that is a reference to
1213 // Describes what this matcher matches.
1354 *os << (full_match_ ? "matches" : "contains")
1467 // Implements the Not(m) matcher, which matches a value that doesn't
1636 // matches a value that matches all of the matchers m_1, ..., and m_n.
1686 // If either matcher1_ or matcher2_ matches x, we just need to
1687 // explain why *one* of them matches.
1730 // matches a value that matches at least one of the matchers m_1, ...,
1883 // Implements the polymorphic floating point equality matcher, which matches
1966 *os << "never matches";
2041 // pointee matches matcher m. The pointer can be either raw or smart.
2101 // Implements the WhenDynamicCastTo<T>(m) matcher that matches a pointer or
2102 // reference that matches inner_matcher when dynamic_cast<T> is applied.
2434 << "whose size " << size << (result ? " matches" : " doesn't match");
2495 << (result ? " matches" : " doesn't match");
2815 // * Any element in the container matches, if !all_elements_should_match.
2824 const bool matches = inner_matcher_.MatchAndExplain(*it, &inner_listener);
2826 if (matches != all_elements_should_match) {
2828 << (matches ? " matches" : " doesn't match");
2935 // Key(inner_matcher) matches an std::pair whose 'first' field matches
2950 // Returns true iff 'key_value.first' (the key) matches the inner matcher.
3031 // Returns true iff 'a_pair.first' matches first_matcher and 'a_pair.second'
3032 // matches second_matcher.
3215 // The element count matches, but the exam_pos-th element doesn't match.
3223 // Every element matches its expectation. We need to explain why
3233 *listener << "whose element #" << i << " matches, " << s;
3544 // second) is a polymorphic matcher that matches a value x iff tm
3545 // matches tuple (x, second). Useful for implementing
3608 // MatcherBindSecond(tm, second) returns a matcher that matches a
3609 // value x iff tm matches tuple (x, second). Useful for implementing
3720 // _ is a matcher that matches anything of any type.
3730 // Creates a matcher that matches any value of the given type T.
3734 // Creates a matcher that matches any value of the given type T.
3738 // Creates a polymorphic matcher that matches anything equal to x.
3745 // matcher matches any value that's equal to 'value'.
3749 // Creates a monomorphic matcher that matches anything with type Lhs
3764 // Creates a polymorphic matcher that matches anything >= x.
3770 // Creates a polymorphic matcher that matches anything > x.
3776 // Creates a polymorphic matcher that matches anything <= x.
3782 // Creates a polymorphic matcher that matches anything < x.
3788 // Creates a polymorphic matcher that matches anything != x.
3794 // Creates a polymorphic matcher that matches any NULL pointer.
3799 // Creates a polymorphic matcher that matches any non-NULL pointer.
3806 // Creates a polymorphic matcher that matches any argument that
3813 // Creates a matcher that matches any double argument approximately
3819 // Creates a matcher that matches any double argument approximately
3825 // Creates a matcher that matches any double argument approximately equal to
3833 // Creates a matcher that matches any double argument approximately equal to
3841 // Creates a matcher that matches any float argument approximately
3847 // Creates a matcher that matches any float argument approximately
3853 // Creates a matcher that matches any float argument approximately equal to
3861 // Creates a matcher that matches any float argument approximately equal to
3869 // Creates a matcher that matches a pointer (raw or smart) that points
3870 // to a value that matches inner_matcher.
3877 // Creates a matcher that matches a pointer or reference that matches
3890 // Creates a matcher that matches an object whose given field matches
3893 // matches a Foo object x iff x.number >= 5.
3907 // Creates a matcher that matches an object whose given property
3908 // matches 'matcher'. For example,
3910 // matches a Foo object x iff x.str() starts with "hi".
3925 // Creates a matcher that matches an object iff the result of applying
3926 // a callable to x matches 'matcher'.
3929 // matches a Foo object x iff f(x) starts with "hi".
3981 // Creates a matcher that matches any string, std::string, or C string
4003 // Matches a string that fully matches regular expression 'regex'.
4056 // Creates a matcher that matches any wstring, std::wstring, or C wide string
4080 // Creates a polymorphic matcher that matches a 2-tuple where the
4084 // Creates a polymorphic matcher that matches a 2-tuple where the
4088 // Creates a polymorphic matcher that matches a 2-tuple where the
4092 // Creates a polymorphic matcher that matches a 2-tuple where the
4096 // Creates a polymorphic matcher that matches a 2-tuple where the
4100 // Creates a polymorphic matcher that matches a 2-tuple where the
4104 // Creates a matcher that matches any value of type T that m doesn't
4111 // Returns a matcher that matches anything that satisfies the given
4120 // Returns a matcher that matches the container size. The container must
4132 // Returns a matcher that matches the distance between the container's begin()
4143 // Returns a matcher that matches an equal container.
4158 // Returns a matcher that matches a container that, when sorted using
4159 // the given comparator, matches container_matcher.
4168 // Returns a matcher that matches a container that, when sorted using
4169 // the < operator, matches container_matcher.
4207 // UnorderedPointwise(pair_matcher, rhs) matches an STL-style
4294 // // Each(m) matches an empty container, regardless of what m is.
4318 // Key(inner_matcher) matches an std::pair whose 'first' field matches
4326 // Pair(first_matcher, second_matcher) matches a std::pair whose 'first' field
4327 // matches first_matcher and whose 'second' field matches second_matcher. For
4338 // Returns a predicate that is satisfied by anything that matches the
4345 // Returns true iff the value matches the matcher.
4386 // succeed iff the value matches the matcher. If the assertion fails,