Home | History | Annotate | Download | only in test

Lines Matching refs:ResultOf

114 using testing::ResultOf;
3332 // Tests ResultOf.
3334 // Tests that ResultOf(f, ...) compiles and works as expected when f is a
3339 Matcher<int> matcher = ResultOf(&IntToStringFunction, Eq(string("foo")));
3345 // Tests that ResultOf() can describe itself.
3347 Matcher<int> matcher = ResultOf(&IntToStringFunction, StrEq("foo"));
3355 // Tests that ResultOf() can explain the match result.
3359 Matcher<int> matcher = ResultOf(&IntFunction, Ge(85));
3363 matcher = ResultOf(&IntFunction, GreaterThan(85));
3368 // Tests that ResultOf(f, ...) compiles and works as expected when f(x)
3371 Matcher<int> matcher = ResultOf(&IntFunction, Eq(80));
3377 // Tests that ResultOf(f, ...) compiles and works as expected when f(x)
3388 Matcher<double&> matcher = ResultOf(&DoubleFunction, Ref(x));
3393 // Test that ResultOf works with uncopyable objects
3397 ResultOf(&RefUncopyableFunction, Ref(obj));
3403 // Tests that ResultOf(f, ...) compiles and works as expected when f(x)
3410 Matcher<const string&> matcher = ResultOf(&StringFunction, Ref(s));
3416 // Tests that ResultOf(f, m) works when f(x) and m's
3420 Matcher<int> matcher = ResultOf(IntFunction, Matcher<signed char>(Ge(85)));
3426 // Tests that the program aborts when ResultOf is passed
3430 ResultOf(static_cast<string(*)(int dummy)>(NULL), Eq(string("foo"))),
3431 "NULL function pointer is passed into ResultOf\\(\\)\\.");
3434 // Tests that ResultOf(f, ...) compiles and works as expected when f is a
3437 Matcher<int> matcher = ResultOf(IntToStringFunction, StrEq("foo"));
3442 // Tests that ResultOf(f, ...) compiles and works as expected when f is a
3451 Matcher<int> matcher = ResultOf(Functor(), Eq(string("foo")));
3457 // Tests that ResultOf(f, ...) compiles and works as expected when f is a
3458 // functor with more then one operator() defined. ResultOf() must work
3467 Matcher<int> matcher_int = ResultOf(PolymorphicFunctor(), Ge(5));
3472 Matcher<const char*> matcher_string = ResultOf(PolymorphicFunctor(), Ge(5));
3488 Matcher<const int&> matcher2 = ResultOf(ReferencingFunction, Eq(&n));
3492 Matcher<const int&> matcher3 = ResultOf(ReferencingFunctor(), Eq(&n));