Lines Matching refs:Eq
82 using testing::Eq;
290 // Tests that value can be used in place of Eq(value).
297 // Tests that NULL can be used in place of Eq(NULL).
308 Matcher<bool> m1 = Eq(false);
313 m1 = Eq(true);
463 Matcher<int> m = MatcherCast<int>(Eq(5));
488 Matcher<double> m1 = Eq(2.0);
504 Matcher<const int&> m1 = Eq(0);
512 Matcher<int&> m1 = Eq(0);
520 Matcher<int> m1 = Eq(0);
528 Matcher<int> m1 = Eq(0);
538 Matcher<int> m1 = Eq(0);
549 Matcher<char> m2 = SafeMatcherCast<char>(Eq(32));
572 Matcher<Base*> m1 = Eq(&d);
595 Matcher<int> m1 = Eq(0);
603 Matcher<int> m1 = Eq(0);
613 Matcher<int> m1 = Eq(0);
681 // Tests that Eq(x) matches any value equal to x.
687 Matcher<const char*> m1 = Eq(a1);
692 // Tests that Eq(v) describes itself properly.
704 Matcher<Unprintable> m = Eq(Unprintable());
708 // Tests that Eq(v) can be used to match any type that supports
711 Matcher<int> m1 = Eq(1);
715 Matcher<char> m2 = Eq(1);
1756 // Tests that Eq() matches a 2-tuple where the first field == the
1759 Matcher<const Tuple2&> m = Eq();
1764 // Tests that Eq() describes itself properly.
1766 Matcher<const Tuple2&> m = Eq();
1848 m = Not(Eq(2));
1855 Matcher<int> m = Not(Eq(5));
2064 m = AnyOf(Lt(0), Eq(1), Eq(2));
2070 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3));
2105 m = AnyOf(Lt(0), Eq(1), Eq(2));
2110 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3));
2133 m = AnyOf(Lt(0), Eq(1), Eq(2));
2138 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3));
2279 EXPECT_FALSE(Matches(Eq('a'))('b'));
2286 EXPECT_TRUE(Matches(AllOf(Ref(n), Eq(0)))(n));
2293 Matcher<int> eq5 = Eq(5);
2307 const Matcher<int> is_zero = Eq(0);
2333 const Matcher<const double&> is_zero = Eq(0);
2344 EXPECT_THAT(0, Really(Eq(0)));
2354 EXPECT_THAT('a', Not(AllArgs(Eq('b'))));
2761 // Tests that we can write Pointee(value) instead of Pointee(Eq(value)).
3236 Matcher<int> matcher = ResultOf(&IntToStringFunction, Eq(string("foo")));
3268 Matcher<int> matcher = ResultOf(&IntFunction, Eq(80));
3327 ResultOf(static_cast<string(*)(int dummy)>(NULL), Eq(string("foo"))),
3348 Matcher<int> matcher = ResultOf(Functor(), Eq(string("foo")));
3385 Matcher<const int&> matcher2 = ResultOf(ReferencingFunction, Eq(&n));
3389 Matcher<const int&> matcher3 = ResultOf(ReferencingFunctor(), Eq(&n));
3464 // ctor can be used as arguments to matchers like Eq(), Ge(), and etc
3488 const Matcher<const NotCopyable&> m = Eq(ByRef(const_value1));
3790 ExplainMatchFailureTupleTo(make_tuple(Matcher<char>(Eq('a')), GreaterThan(5)),
3795 ExplainMatchFailureTupleTo(make_tuple(GreaterThan(5), Matcher<char>(Eq('a'))),
3804 ExplainMatchFailureTupleTo(make_tuple(GreaterThan(5), Matcher<char>(Eq('a'))),