Lines Matching refs:AllOf

77 using testing::AllOf;
1917 // Helper to allow easy testing of AllOf matchers with num parameters.
1927 // Tests that AllOf(m1, ..., mn) matches any value that matches all of
1931 m = AllOf(Le(2), Ge(1));
1937 m = AllOf(Gt(0), Ne(1), Ne(2));
1943 m = AllOf(Gt(0), Ne(1), Ne(2), Ne(3));
1950 m = AllOf(Ge(0), Lt(10), Ne(3), Ne(5), Ne(7));
1959 AllOfMatches(2, AllOf(Ne(1), Ne(2)));
1960 AllOfMatches(3, AllOf(Ne(1), Ne(2), Ne(3)));
1961 AllOfMatches(4, AllOf(Ne(1), Ne(2), Ne(3), Ne(4)));
1962 AllOfMatches(5, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5)));
1963 AllOfMatches(6, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6)));
1964 AllOfMatches(7, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7)));
1965 AllOfMatches(8, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7),
1967 AllOfMatches(9, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7),
1969 AllOfMatches(10, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7), Ne(8),
1973 // Tests that AllOf(m1, ..., mn) describes itself properly.
1976 m = AllOf(Le(2), Ge(1));
1979 m = AllOf(Gt(0), Ne(1), Ne(2));
1986 m = AllOf(Gt(0), Ne(1), Ne(2), Ne(3));
1994 m = AllOf(Ge(0), Lt(10), Ne(3), Ne(5), Ne(7));
2003 // Tests that AllOf(m1, ..., mn) describes its negation properly.
2006 m = AllOf(Le(2), Ge(1));
2011 m = AllOf(Gt(0), Ne(1), Ne(2));
2018 m = AllOf(Gt(0), Ne(1), Ne(2), Ne(3));
2026 m = AllOf(Ge(0), Lt(10), Ne(3), Ne(5), Ne(7));
2035 // Tests that monomorphic matchers are safely cast by the AllOf matcher.
2041 Matcher<const int&> m = AllOf(greater_than_5, less_than_10);
2042 Matcher<int&> m2 = AllOf(greater_than_5, less_than_10);
2043 Matcher<int&> m3 = AllOf(greater_than_5, m2);
2046 Matcher<const int&> m4 = AllOf(greater_than_5, less_than_10, less_than_10);
2047 Matcher<int&> m5 = AllOf(greater_than_5, less_than_10, less_than_10);
2056 m = AllOf(GreaterThan(10), Lt(30));
2060 m = AllOf(GreaterThan(10), GreaterThan(20));
2066 m = AllOf(GreaterThan(10), Lt(30), GreaterThan(20));
2071 m = AllOf(GreaterThan(10), GreaterThan(20), GreaterThan(30));
2078 m = AllOf(GreaterThan(10), GreaterThan(20));
2084 m = AllOf(GreaterThan(10), Lt(30));
2089 m = AllOf(GreaterThan(10), GreaterThan(20));
2357 EXPECT_TRUE(Matches(AllOf(Ref(n), Eq(0)))(n));
2457 EXPECT_THAT(2, AllOf(Le(7), Ge(0))) << "This should succeed too.";
2480 EXPECT_THAT(n, ::testing::AllOf(::testing::Le(7), ::testing::Ge(5))),
2493 EXPECT_THAT(n, AllOf(Le(7), Ref(n)));
3528 // Tests that when AllOf() fails, only the first failing matcher is
3531 const Matcher<int> m = AllOf(DivisibleBy(4), DivisibleBy(3));
3535 // Tests that when AllOf() fails, only the first failing matcher is
3538 const Matcher<int> m = AllOf(DivisibleBy(4), DivisibleBy(3));
3542 // Tests that when AllOf() fails, only the first failing matcher is
3545 const Matcher<int> m = AllOf(Ge(1), DivisibleBy(3));
3549 // Tests that when AllOf() succeeds, all matchers are asked to explain
3552 const Matcher<int> m = AllOf(DivisibleBy(2), DivisibleBy(3));
3557 const Matcher<int> m = AllOf(Ge(2), Le(3));