Home | History | Annotate | Download | only in test

Lines Matching refs:Ref

111 using testing::Ref;
577 Matcher<Base&> m3 = Ref(d);
586 Matcher<const int&> m1 = Ref(n);
936 // Tests that Ref(variable) matches an argument that references
941 Matcher<int&> m = Ref(a);
946 // Tests that Ref(variable) describes itself properly.
949 Matcher<int&> m = Ref(n);
955 // Test that Ref(non_const_varialbe) can be used as a matcher for a
960 Matcher<const int&> m = Ref(a);
965 // Tests that Ref(variable) is covariant, i.e. Ref(derived) can be
966 // used wherever Ref(base) can be used (Ref(derived) is a sub-type
967 // of Ref(base), but not vice versa.
972 Matcher<const Base&> m1 = Ref(base);
977 m1 = Ref(derived);
985 EXPECT_THAT(Explain(Matcher<const int&>(Ref(n)), n),
989 EXPECT_THAT(Explain(Matcher<const int&>(Ref(n)), m),
2286 EXPECT_TRUE(Matches(AllOf(Ref(n), Eq(0)))(n));
2287 EXPECT_FALSE(Matches(Ref(m))(n));
2312 const Matcher<const int&> ref_n = Ref(n);
2422 EXPECT_THAT(n, AllOf(Le(7), Ref(n)));
2423 EXPECT_FATAL_FAILURE(ASSERT_THAT(n, ::testing::Not(::testing::Ref(n))),
2427 EXPECT_FATAL_FAILURE(ASSERT_THAT(n, ::testing::Not(::testing::Ref(n))),
3074 Matcher<const AClass&> m = Property(&AClass::x, Ref(x));
3077 m = Property(&AClass::x, Not(Ref(x)));
3285 Matcher<double&> matcher = ResultOf(&DoubleFunction, Ref(x));
3294 ResultOf(&RefUncopyableFunction, Ref(obj));
3307 Matcher<const string&> matcher = ResultOf(&StringFunction, Ref(s));