Lines Matching defs:matches

554 // A<T>() returns a matcher that matches any value of type T.
614 // if and only if the first N fields of matcher_tuple matches
739 // Implements _, a matcher that matches any value of any
756 *os << "never matches";
760 // Implements the polymorphic IsNull() matcher, which matches any raw or smart
774 // Implements the polymorphic NotNull() matcher, which matches any raw or smart
788 // Ref(variable) matches any argument that is a reference to
999 // Describes what this matcher matches.
1148 *os << "matches after Base64Unescape ";
1253 // Implements the Not(m) matcher, which matches a value that doesn't
1408 // If either matcher1_ or matcher2_ matches x, we just need to
1409 // explain why *one* of them matches.
1625 // Implements the polymorphic IsNan() matcher, which matches any floating type
1639 // Implements the polymorphic floating point equality matcher, which matches
1721 *os << "never matches";
1787 // FloatingEq2Matcher() matches (x, y) by matching FloatingEqMatcher(x, false)
1788 // against y, and FloatingEq2Matcher(e) matches FloatingEqMatcher(x, false, e)
1862 // pointee matches matcher m. The pointer can be either raw or smart.
1919 // Implements the Pointer(m) matcher for matching a pointer that matches matcher
1977 // Implements the WhenDynamicCastTo<T>(m) matcher that matches a pointer or
1978 // reference that matches inner_matcher when dynamic_cast<T> is applied.
2327 << (result ? " matches" : " doesn't match");
2383 << (result ? " matches" : " doesn't match");
2708 // * Any element in the container matches, if !all_elements_should_match.
2716 const bool matches = inner_matcher_.MatchAndExplain(*it, &inner_listener);
2718 if (matches != all_elements_should_match) {
2720 << (matches ? " matches" : " doesn't match");
2737 const bool matches = inner_matcher_.MatchAndExplain(*it, &inner_listener);
2738 if (matches) {
2744 *listener << "has no element that matches";
2746 *listener << "whose element #" << match_elements[0] << " matches";
2760 << " matches";
2945 // Key(inner_matcher) matches an std::pair whose 'first' field matches
2959 // Returns true if and only if 'key_value.first' (the key) matches the inner
3080 // Returns true if and only if 'a_pair.first' matches first_matcher and
3081 // 'a_pair.second' matches second_matcher.
3471 // The element count matches, but the exam_pos-th element doesn't match.
3479 // Every element matches its expectation. We need to explain why
3489 *listener << "whose element #" << i << " matches, " << s;
3794 // second) is a polymorphic matcher that matches a value x if and only if
3795 // tm matches tuple (x, second). Useful for implementing
3858 // MatcherBindSecond(tm, second) returns a matcher that matches a
3859 // value x if and only if tm matches tuple (x, second). Useful for
3916 << (match ? " matches" : " doesn't match");
3960 << (match ? " matches" : " doesn't match");
4021 << (match ? " matches" : " doesn't match");
4226 // _ is a matcher that matches anything of any type.
4236 // Creates a matcher that matches any value of the given type T.
4242 // Creates a matcher that matches any value of the given type T.
4255 // Creates a polymorphic matcher that matches any NULL pointer.
4260 // Creates a polymorphic matcher that matches any non-NULL pointer.
4267 // Creates a polymorphic matcher that matches any argument that
4274 // Creates a polymorphic matcher that matches any NaN floating point.
4279 // Creates a matcher that matches any double argument approximately
4285 // Creates a matcher that matches any double argument approximately
4291 // Creates a matcher that matches any double argument approximately equal to
4299 // Creates a matcher that matches any double argument approximately equal to
4307 // Creates a matcher that matches any float argument approximately
4313 // Creates a matcher that matches any float argument approximately
4319 // Creates a matcher that matches any float argument approximately equal to
4327 // Creates a matcher that matches any float argument approximately equal to
4335 // Creates a matcher that matches a pointer (raw or smart) that points
4336 // to a value that matches inner_matcher.
4344 // Creates a matcher that matches a pointer or reference that matches
4358 // Creates a matcher that matches an object whose given field matches
4361 // matches a Foo object x if and only if x.number >= 5.
4383 // Creates a matcher that matches an object whose given property
4384 // matches 'matcher'. For example,
4386 // matches a Foo object x if and only if x.str() starts with "hi".
4441 // Creates a matcher that matches an object if and only if the result of
4442 // applying a callable to x matches 'matcher'. For example,
4444 // matches a Foo object x if and only if f(x) starts with "hi".
4500 // Creates a matcher that matches any string, std::string, or C string
4556 // Creates a matcher that matches any ::wstring, std::wstring, or C wide string
4580 // Creates a polymorphic matcher that matches a 2-tuple where the
4584 // Creates a polymorphic matcher that matches a 2-tuple where the
4588 // Creates a polymorphic matcher that matches a 2-tuple where the
4592 // Creates a polymorphic matcher that matches a 2-tuple where the
4596 // Creates a polymorphic matcher that matches a 2-tuple where the
4600 // Creates a polymorphic matcher that matches a 2-tuple where the
4604 // Creates a polymorphic matcher that matches a 2-tuple where
4605 // FloatEq(first field) matches the second field.
4610 // Creates a polymorphic matcher that matches a 2-tuple where
4611 // DoubleEq(first field) matches the second field.
4616 // Creates a polymorphic matcher that matches a 2-tuple where
4617 // FloatEq(first field) matches the second field with NaN equality.
4622 // Creates a polymorphic matcher that matches a 2-tuple where
4623 // DoubleEq(first field) matches the second field with NaN equality.
4628 // Creates a polymorphic matcher that matches a 2-tuple where
4629 // FloatNear(first field, max_abs_error) matches the second field.
4634 // Creates a polymorphic matcher that matches a 2-tuple where
4635 // DoubleNear(first field, max_abs_error) matches the second field.
4640 // Creates a polymorphic matcher that matches a 2-tuple where
4641 // FloatNear(first field, max_abs_error) matches the second field with NaN
4648 // Creates a polymorphic matcher that matches a 2-tuple where
4649 // DoubleNear(first field, max_abs_error) matches the second field with NaN
4656 // Creates a matcher that matches any value of type T that m doesn't
4663 // Returns a matcher that matches anything that satisfies the given
4672 // Returns a matcher that matches the container size. The container must
4684 // Returns a matcher that matches the distance between the container's begin()
4695 // Returns a matcher that matches an equal container.
4706 // Returns a matcher that matches a container that, when sorted using
4707 // the given comparator, matches container_matcher.
4715 // Returns a matcher that matches a container that, when sorted using
4716 // the < operator, matches container_matcher.
4746 // UnorderedPointwise(pair_matcher, rhs) matches an STL-style
4836 // of matchers exists. In other words, a container matches
4838 // {y1, ..., yn} of some of the container's elements where y1 matches e1,
4839 // ..., and yn matches en. Obviously, the size of the container must be >= n
4842 // - {1, 2, 3} matches IsSupersetOf({Ge(3), Ne(0)}), as 3 matches Ge(3) and
4843 // 1 matches Ne(0).
4844 // - {1, 2} doesn't match IsSupersetOf({Eq(1), Lt(2)}), even though 1 matches
4847 // - {1, 1, 2} matches IsSupersetOf({Eq(1), Lt(2)}), as (the first) 1 matches
4848 // Eq(1) and (the second) 1 matches Lt(2).
4849 // - {1, 2, 3} matches IsSupersetOf(Gt(1), Gt(1)), as 2 matches (the first)
4850 // Gt(1) and 3 matches (the second) Gt(1).
4897 // exists. In other words, a container matches IsSubsetOf({e1, ..., en}) if and
4902 // - {1} matches IsSubsetOf({Gt(0), Lt(0)}), as 1 matches Gt(0).
4903 // - {1, -1} matches IsSubsetOf({Lt(0), Gt(0)}), as 1 matches Gt(0) and -1
4904 // matches Lt(0).
4905 // - {1, 2} doesn't matches IsSubsetOf({Gt(0), Lt(0)}), even though 1 and 2 both
4955 // // Each(m) matches an empty container, regardless of what m is.
4979 // Key(inner_matcher) matches an std::pair whose 'first' field matches
4987 // Pair(first_matcher, second_matcher) matches a std::pair whose 'first' field
4988 // matches first_matcher and whose 'second' field matches second_matcher. For
5012 // FieldsAre(matchers...) matches piecewise the fields of compatible structs.
5023 // Creates a matcher that matches a pointer (raw or smart) that matches
5031 // Creates a matcher that matches an object that has an address that matches
5039 // Matches a base64 escaped string, when the unescaped string matches the
5048 // Returns a predicate that is satisfied by anything that matches the
5055 // Returns true if and only if the value matches the matcher.
5131 // AnyOfArray() verifies whether a given value matches any member of a
5140 // AllOfArray() verifies whether a given value matches all members of a
5207 // Args<N1, N2, ..., Nk>(a_matcher) matches a tuple if the selected
5208 // fields of it matches a_matcher. C++ doesn't support default
5229 // Returns a matcher that matches the value of an optional<> type variable.
5243 // Returns a matcher that matches the value of a absl::any type variable.
5251 // Returns a matcher that matches the value of a variant<> type variable.
5434 // succeed if and only if the value matches the matcher. If the assertion