Lines Matching refs:Eq

91 using testing::Eq;
320 // Tests that value can be used in place of Eq(value).
327 // Tests that NULL can be used in place of Eq(NULL).
338 Matcher<bool> m1 = Eq(false);
343 m1 = Eq(true);
531 Matcher<int> m = MatcherCast<int>(Eq(5));
556 Matcher<double> m1 = Eq(2.0);
572 Matcher<const int&> m1 = Eq(0);
580 Matcher<int&> m1 = Eq(0);
588 Matcher<int> m1 = Eq(0);
596 Matcher<int> m1 = Eq(0);
606 Matcher<int> m1 = Eq(0);
638 MatcherCast<ConvertibleFromAny>(Eq(ConvertibleFromAny(1)));
677 Matcher<char> m2 = SafeMatcherCast<char>(Eq(32));
700 Matcher<Base*> m1 = Eq(&d);
723 Matcher<int> m1 = Eq(0);
731 Matcher<int> m1 = Eq(0);
741 Matcher<int> m1 = Eq(0);
755 SafeMatcherCast<ConvertibleFromAny>(Eq(ConvertibleFromAny(1)));
853 // Tests that Eq(x) matches any value equal to x.
859 Matcher<const char*> m1 = Eq(a1);
864 // Tests that Eq(v) describes itself properly.
880 Matcher<Unprintable> m = Eq(Unprintable());
884 // Tests that Eq(v) can be used to match any type that supports
887 Matcher<int> m1 = Eq(1);
891 Matcher<char> m2 = Eq(1);
1932 // Tests that Eq() matches a 2-tuple where the first field == the
1935 Matcher<const Tuple2&> m = Eq();
1940 // Tests that Eq() describes itself properly.
1942 Matcher<const Tuple2&> m = Eq();
2024 m = Not(Eq(2));
2031 Matcher<int> m = Not(Eq(5));
2262 m = AnyOf(Lt(0), Eq(1), Eq(2));
2268 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3));
2321 m = AnyOf(Lt(0), Eq(1), Eq(2));
2326 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3));
2349 m = AnyOf(Lt(0), Eq(1), Eq(2));
2354 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3));
2518 EXPECT_FALSE(Matches(Eq('a'))('b'));
2525 EXPECT_TRUE(Matches(AllOf(Ref(n), Eq(0)))(n));
2532 Matcher<int> eq5 = Eq(5);
2546 const Matcher<int> is_zero = Eq(0);
2572 const Matcher<const double&> is_zero = Eq(0);
2583 EXPECT_THAT(0, Really(Eq(0)));
2593 EXPECT_THAT('a', Not(AllArgs(Eq('b'))));
3321 // Tests that we can write Pointee(value) instead of Pointee(Eq(value)).
3805 Matcher<int> matcher = ResultOf(&IntToStringFunction, Eq(string("foo")));
3837 Matcher<int> matcher = ResultOf(&IntFunction, Eq(80));
3896 ResultOf(static_cast<string(*)(int dummy)>(NULL), Eq(string("foo"))),
3917 Matcher<int> matcher = ResultOf(Functor(), Eq(string("foo")));
3954 Matcher<const int&> matcher2 = ResultOf(ReferencingFunction, Eq(&n));
3958 Matcher<const int&> matcher3 = ResultOf(ReferencingFunctor(), Eq(&n));
4033 // ctor can be used as arguments to matchers like Eq(), Ge(), and etc
4057 const Matcher<const NotCopyable&> m = Eq(ByRef(const_value1));
4774 {Eq(1), Eq(2), Eq(3), Eq(4), Eq(5)}));
4776 {Eq(1), Eq(2), Eq(3), Eq(4), Eq(6)})));
4786 {Eq(1), Ne(-2), Ge(3), Le(4), Eq(5)}));
4788 {Eq(1), Ne(-2), Ge(3), Le(4), Eq(6)})));
4853 mv[50] = Eq(0);
4884 EXPECT_THAT(listener.str(), Eq("which has 1 element"));
4892 EXPECT_THAT(listener.str(), Eq(""));
4904 Eq("where the following matchers don't match any elements:\n"
4917 Eq("where the following elements don't match any matchers:\n"
4930 Eq("where"
4978 Eq("is empty"));
4981 Eq("has 1 element and that element is equal to 345"));
4984 Eq("has 3 elements and there exists some permutation "
4993 Eq("isn't empty"));
4996 Eq("doesn't have 1 element, or has 1 element that isn't equal to 345"));
4999 Eq("doesn't have 3 elements, or there exists no permutation "
5301 ExplainMatchFailureTupleTo(make_tuple(Matcher<char>(Eq('a')), GreaterThan(5)),
5306 ExplainMatchFailureTupleTo(make_tuple(GreaterThan(5), Matcher<char>(Eq('a'))),
5315 ExplainMatchFailureTupleTo(make_tuple(GreaterThan(5), Matcher<char>(Eq('a'))),