Home | History | Annotate | Download | only in test

Lines Matching refs:AnyOf

79 using testing::AnyOf;
2093 // Helper to allow easy testing of AnyOf matchers with num parameters.
2103 // Tests that AnyOf(m1, ..., mn) matches any value that matches at
2107 m = AnyOf(Le(1), Ge(3));
2112 m = AnyOf(Lt(0), Eq(1), Eq(2));
2118 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3));
2125 m = AnyOf(Le(0), Gt(10), 3, 5, 7);
2135 AnyOfMatches(2, AnyOf(1, 2));
2136 AnyOfMatches(3, AnyOf(1, 2, 3));
2137 AnyOfMatches(4, AnyOf(1, 2, 3, 4));
2138 AnyOfMatches(5, AnyOf(1, 2, 3, 4, 5));
2139 AnyOfMatches(6, AnyOf(1, 2, 3, 4, 5, 6));
2140 AnyOfMatches(7, AnyOf(1, 2, 3, 4, 5, 6, 7));
2141 AnyOfMatches(8, AnyOf(1, 2, 3, 4, 5, 6, 7, 8));
2142 AnyOfMatches(9, AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9));
2143 AnyOfMatches(10, AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10));
2146 // Tests that AnyOf(m1, ..., mn) describes itself properly.
2149 m = AnyOf(Le(1), Ge(3));
2153 m = AnyOf(Lt(0), Eq(1), Eq(2));
2158 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3));
2165 m = AnyOf(Le(0), Gt(10), 3, 5, 7);
2174 // Tests that AnyOf(m1, ..., mn) describes its negation properly.
2177 m = AnyOf(Le(1), Ge(3));
2181 m = AnyOf(Lt(0), Eq(1), Eq(2));
2186 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3));
2193 m = AnyOf(Le(0), Gt(10), 3, 5, 7);
2202 // Tests that monomorphic matchers are safely cast by the AnyOf matcher.
2208 Matcher<const int&> m = AnyOf(greater_than_5, less_than_10);
2209 Matcher<int&> m2 = AnyOf(greater_than_5, less_than_10);
2210 Matcher<int&> m3 = AnyOf(greater_than_5, m2);
2213 Matcher<const int&> m4 = AnyOf(greater_than_5, less_than_10, less_than_10);
2214 Matcher<int&> m5 = AnyOf(greater_than_5, less_than_10, less_than_10);
2223 m = AnyOf(GreaterThan(10), Lt(0));
2227 m = AnyOf(GreaterThan(10), GreaterThan(20));
2233 m = AnyOf(GreaterThan(10), Gt(20), GreaterThan(30));
2238 m = AnyOf(GreaterThan(10), GreaterThan(20), GreaterThan(30));
2245 m = AnyOf(GreaterThan(10), GreaterThan(20));
2251 m = AnyOf(GreaterThan(10), Lt(30));
2256 m = AnyOf(GreaterThan(30), GreaterThan(20));