Home | History | Annotate | Download | only in test

Lines Matching full:allof

75 using testing::AllOf;
1869 // Helper to allow easy testing of AllOf matchers with num parameters.
1879 // Tests that AllOf(m1, ..., mn) matches any value that matches all of
1883 m = AllOf(Le(2), Ge(1));
1889 m = AllOf(Gt(0), Ne(1), Ne(2));
1895 m = AllOf(Gt(0), Ne(1), Ne(2), Ne(3));
1902 m = AllOf(Ge(0), Lt(10), Ne(3), Ne(5), Ne(7));
1911 AllOfMatches(2, AllOf(Ne(1), Ne(2)));
1912 AllOfMatches(3, AllOf(Ne(1), Ne(2), Ne(3)));
1913 AllOfMatches(4, AllOf(Ne(1), Ne(2), Ne(3), Ne(4)));
1914 AllOfMatches(5, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5)));
1915 AllOfMatches(6, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6)));
1916 AllOfMatches(7, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7)));
1917 AllOfMatches(8, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7),
1919 AllOfMatches(9, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7),
1921 AllOfMatches(10, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7), Ne(8),
1925 // Tests that AllOf(m1, ..., mn) describes itself properly.
1928 m = AllOf(Le(2), Ge(1));
1931 m = AllOf(Gt(0), Ne(1), Ne(2));
1938 m = AllOf(Gt(0), Ne(1), Ne(2), Ne(3));
1946 m = AllOf(Ge(0), Lt(10), Ne(3), Ne(5), Ne(7));
1955 // Tests that AllOf(m1, ..., mn) describes its negation properly.
1958 m = AllOf(Le(2), Ge(1));
1963 m = AllOf(Gt(0), Ne(1), Ne(2));
1970 m = AllOf(Gt(0), Ne(1), Ne(2), Ne(3));
1978 m = AllOf(Ge(0), Lt(10), Ne(3), Ne(5), Ne(7));
1987 // Tests that monomorphic matchers are safely cast by the AllOf matcher.
1993 Matcher<const int&> m = AllOf(greater_than_5, less_than_10);
1994 Matcher<int&> m2 = AllOf(greater_than_5, less_than_10);
1995 Matcher<int&> m3 = AllOf(greater_than_5, m2);
1998 Matcher<const int&> m4 = AllOf(greater_than_5, less_than_10, less_than_10);
1999 Matcher<int&> m5 = AllOf(greater_than_5, less_than_10, less_than_10);
2008 m = AllOf(GreaterThan(10), Lt(30));
2012 m = AllOf(GreaterThan(10), GreaterThan(20));
2018 m = AllOf(GreaterThan(10), Lt(30), GreaterThan(20));
2023 m = AllOf(GreaterThan(10), GreaterThan(20), GreaterThan(30));
2030 m = AllOf(GreaterThan(10), GreaterThan(20));
2036 m = AllOf(GreaterThan(10), Lt(30));
2041 m = AllOf(GreaterThan(10), GreaterThan(20));
2286 EXPECT_TRUE(Matches(AllOf(Ref(n), Eq(0)))(n));
2386 EXPECT_THAT(2, AllOf(Le(7), Ge(0))) << "This should succeed too.";
2409 EXPECT_THAT(n, ::testing::AllOf(::testing::Le(7), ::testing::Ge(5))),
2422 EXPECT_THAT(n, AllOf(Le(7), Ref(n)));
3425 // Tests that when AllOf() fails, only the first failing matcher is
3428 const Matcher<int> m = AllOf(DivisibleBy(4), DivisibleBy(3));
3432 // Tests that when AllOf() fails, only the first failing matcher is
3435 const Matcher<int> m = AllOf(DivisibleBy(4), DivisibleBy(3));
3439 // Tests that when AllOf() fails, only the first failing matcher is
3442 const Matcher<int> m = AllOf(Ge(1), DivisibleBy(3));
3446 // Tests that when AllOf() succeeds, all matchers are asked to explain
3449 const Matcher<int> m = AllOf(DivisibleBy(2), DivisibleBy(3));
3454 const Matcher<int> m = AllOf(Ge(2), Le(3));