Lines Matching refs:AnyOf

85 using testing::AnyOf;
2243 // Helper to allow easy testing of AnyOf matchers with num parameters.
2253 // Tests that AnyOf(m1, ..., mn) matches any value that matches at
2257 m = AnyOf(Le(1), Ge(3));
2262 m = AnyOf(Lt(0), Eq(1), Eq(2));
2268 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3));
2275 m = AnyOf(Le(0), Gt(10), 3, 5, 7);
2285 AnyOfMatches(2, AnyOf(1, 2));
2286 AnyOfMatches(3, AnyOf(1, 2, 3));
2287 AnyOfMatches(4, AnyOf(1, 2, 3, 4));
2288 AnyOfMatches(5, AnyOf(1, 2, 3, 4, 5));
2289 AnyOfMatches(6, AnyOf(1, 2, 3, 4, 5, 6));
2290 AnyOfMatches(7, AnyOf(1, 2, 3, 4, 5, 6, 7));
2291 AnyOfMatches(8, AnyOf(1, 2, 3, 4, 5, 6, 7, 8));
2292 AnyOfMatches(9, AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9));
2293 AnyOfMatches(10, AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10));
2299 // Also make sure AnyOf is defined in the right namespace and does not depend
2301 Matcher<int> m = ::testing::AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
2305 AnyOfMatches(50, AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
2314 // Tests that AnyOf(m1, ..., mn) describes itself properly.
2317 m = AnyOf(Le(1), Ge(3));
2321 m = AnyOf(Lt(0), Eq(1), Eq(2));
2326 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3));
2333 m = AnyOf(Le(0), Gt(10), 3, 5, 7);
2342 // Tests that AnyOf(m1, ..., mn) describes its negation properly.
2345 m = AnyOf(Le(1), Ge(3));
2349 m = AnyOf(Lt(0), Eq(1), Eq(2));
2354 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3));
2361 m = AnyOf(Le(0), Gt(10), 3, 5, 7);
2370 // Tests that monomorphic matchers are safely cast by the AnyOf matcher.
2376 Matcher<const int&> m = AnyOf(greater_than_5, less_than_10);
2377 Matcher<int&> m2 = AnyOf(greater_than_5, less_than_10);
2378 Matcher<int&> m3 = AnyOf(greater_than_5, m2);
2381 Matcher<const int&> m4 = AnyOf(greater_than_5, less_than_10, less_than_10);
2382 Matcher<int&> m5 = AnyOf(greater_than_5, less_than_10, less_than_10);
2391 m = AnyOf(GreaterThan(10), Lt(0));
2395 m = AnyOf(GreaterThan(10), GreaterThan(20));
2401 m = AnyOf(GreaterThan(10), Gt(20), GreaterThan(30));
2406 m = AnyOf(GreaterThan(10), GreaterThan(20), GreaterThan(30));
2413 m = AnyOf(GreaterThan(10), GreaterThan(20));
2419 m = AnyOf(GreaterThan(10), Lt(30));
2424 m = AnyOf(GreaterThan(30), GreaterThan(20));
4146 Matcher<vector<int> > m3 = SizeIs(AnyOf(0, 3));
4613 Matcher<vector<int> > m3 = BeginEndDistanceIs(AnyOf(0, 3));
4955 UnorderedElementsAre("a", "a", AnyOf("b", "c")), v, &listener))
4966 AnyOf(prefix + "{\n " + EMString(0, 0) +
5150 Pair(AnyOf(1, 2), 1),