Lines Matching refs:AllOf

83 using testing::AllOf;
2045 // Helper to allow easy testing of AllOf matchers with num parameters.
2055 // Tests that AllOf(m1, ..., mn) matches any value that matches all of
2059 m = AllOf(Le(2), Ge(1));
2065 m = AllOf(Gt(0), Ne(1), Ne(2));
2071 m = AllOf(Gt(0), Ne(1), Ne(2), Ne(3));
2078 m = AllOf(Ge(0), Lt(10), Ne(3), Ne(5), Ne(7));
2087 AllOfMatches(2, AllOf(Ne(1), Ne(2)));
2088 AllOfMatches(3, AllOf(Ne(1), Ne(2), Ne(3)));
2089 AllOfMatches(4, AllOf(Ne(1), Ne(2), Ne(3), Ne(4)));
2090 AllOfMatches(5, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5)));
2091 AllOfMatches(6, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6)));
2092 AllOfMatches(7, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7)));
2093 AllOfMatches(8, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7),
2095 AllOfMatches(9, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7),
2097 AllOfMatches(10, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7), Ne(8),
2104 // Make sure AllOf is defined in the right namespace and does not depend on
2106 ::testing::AllOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
2107 Matcher<int> m = AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7), Ne(8),
2111 AllOfMatches(50, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7), Ne(8),
2123 // Tests that AllOf(m1, ..., mn) describes itself properly.
2126 m = AllOf(Le(2), Ge(1));
2129 m = AllOf(Gt(0), Ne(1), Ne(2));
2136 m = AllOf(Gt(0), Ne(1), Ne(2), Ne(3));
2144 m = AllOf(Ge(0), Lt(10), Ne(3), Ne(5), Ne(7));
2153 // Tests that AllOf(m1, ..., mn) describes its negation properly.
2156 m = AllOf(Le(2), Ge(1));
2161 m = AllOf(Gt(0), Ne(1), Ne(2));
2168 m = AllOf(Gt(0), Ne(1), Ne(2), Ne(3));
2176 m = AllOf(Ge(0), Lt(10), Ne(3), Ne(5), Ne(7));
2185 // Tests that monomorphic matchers are safely cast by the AllOf matcher.
2191 Matcher<const int&> m = AllOf(greater_than_5, less_than_10);
2192 Matcher<int&> m2 = AllOf(greater_than_5, less_than_10);
2193 Matcher<int&> m3 = AllOf(greater_than_5, m2);
2196 Matcher<const int&> m4 = AllOf(greater_than_5, less_than_10, less_than_10);
2197 Matcher<int&> m5 = AllOf(greater_than_5, less_than_10, less_than_10);
2206 m = AllOf(GreaterThan(10), Lt(30));
2210 m = AllOf(GreaterThan(10), GreaterThan(20));
2216 m = AllOf(GreaterThan(10), Lt(30), GreaterThan(20));
2221 m = AllOf(GreaterThan(10), GreaterThan(20), GreaterThan(30));
2228 m = AllOf(GreaterThan(10), GreaterThan(20));
2234 m = AllOf(GreaterThan(10), Lt(30));
2239 m = AllOf(GreaterThan(10), GreaterThan(20));
2525 EXPECT_TRUE(Matches(AllOf(Ref(n), Eq(0)))(n));
2625 EXPECT_THAT(2, AllOf(Le(7), Ge(0))) << "This should succeed too.";
2648 EXPECT_THAT(n, ::testing::AllOf(::testing::Le(7), ::testing::Ge(5))),
2661 EXPECT_THAT(n, AllOf(Le(7), Ref(n)));
3994 // Tests that when AllOf() fails, only the first failing matcher is
3997 const Matcher<int> m = AllOf(DivisibleBy(4), DivisibleBy(3));
4001 // Tests that when AllOf() fails, only the first failing matcher is
4004 const Matcher<int> m = AllOf(DivisibleBy(4), DivisibleBy(3));
4008 // Tests that when AllOf() fails, only the first failing matcher is
4011 const Matcher<int> m = AllOf(Ge(1), DivisibleBy(3));
4015 // Tests that when AllOf() succeeds, all matchers are asked to explain
4018 const Matcher<int> m = AllOf(DivisibleBy(2), DivisibleBy(3));
4023 const Matcher<int> m = AllOf(Ge(2), Le(3));