Lines Matching refs:ResultOf

125 using testing::ResultOf;
3798 // Tests ResultOf.
3800 // Tests that ResultOf(f, ...) compiles and works as expected when f is a
3805 Matcher<int> matcher = ResultOf(&IntToStringFunction, Eq(string("foo")));
3811 // Tests that ResultOf() can describe itself.
3813 Matcher<int> matcher = ResultOf(&IntToStringFunction, StrEq("foo"));
3821 // Tests that ResultOf() can explain the match result.
3825 Matcher<int> matcher = ResultOf(&IntFunction, Ge(85));
3829 matcher = ResultOf(&IntFunction, GreaterThan(85));
3834 // Tests that ResultOf(f, ...) compiles and works as expected when f(x)
3837 Matcher<int> matcher = ResultOf(&IntFunction, Eq(80));
3843 // Tests that ResultOf(f, ...) compiles and works as expected when f(x)
3854 Matcher<double&> matcher = ResultOf(&DoubleFunction, Ref(x));
3859 // Test that ResultOf works with uncopyable objects
3863 ResultOf(&RefUncopyableFunction, Ref(obj));
3869 // Tests that ResultOf(f, ...) compiles and works as expected when f(x)
3876 Matcher<const string&> matcher = ResultOf(&StringFunction, Ref(s));
3882 // Tests that ResultOf(f, m) works when f(x) and m's
3886 Matcher<int> matcher = ResultOf(IntFunction, Matcher<signed char>(Ge(85)));
3892 // Tests that the program aborts when ResultOf is passed
3896 ResultOf(static_cast<string(*)(int dummy)>(NULL), Eq(string("foo"))),
3897 "NULL function pointer is passed into ResultOf\\(\\)\\.");
3900 // Tests that ResultOf(f, ...) compiles and works as expected when f is a
3903 Matcher<int> matcher = ResultOf(IntToStringFunction, StrEq("foo"));
3908 // Tests that ResultOf(f, ...) compiles and works as expected when f is a
3917 Matcher<int> matcher = ResultOf(Functor(), Eq(string("foo")));
3923 // Tests that ResultOf(f, ...) compiles and works as expected when f is a
3924 // functor with more then one operator() defined. ResultOf() must work
3933 Matcher<int> matcher_int = ResultOf(PolymorphicFunctor(), Ge(5));
3938 Matcher<const char*> matcher_string = ResultOf(PolymorphicFunctor(), Ge(5));
3954 Matcher<const int&> matcher2 = ResultOf(ReferencingFunction, Eq(&n));
3958 Matcher<const int&> matcher3 = ResultOf(ReferencingFunctor(), Eq(&n));