Home | History | Annotate | Download | only in test

Lines Matching refs:AnyOf

84 using testing::AnyOf;
2184 // Helper to allow easy testing of AnyOf matchers with num parameters.
2194 // Tests that AnyOf(m1, ..., mn) matches any value that matches at
2198 m = AnyOf(Le(1), Ge(3));
2203 m = AnyOf(Lt(0), Eq(1), Eq(2));
2209 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3));
2216 m = AnyOf(Le(0), Gt(10), 3, 5, 7);
2226 AnyOfMatches(2, AnyOf(1, 2));
2227 AnyOfMatches(3, AnyOf(1, 2, 3));
2228 AnyOfMatches(4, AnyOf(1, 2, 3, 4));
2229 AnyOfMatches(5, AnyOf(1, 2, 3, 4, 5));
2230 AnyOfMatches(6, AnyOf(1, 2, 3, 4, 5, 6));
2231 AnyOfMatches(7, AnyOf(1, 2, 3, 4, 5, 6, 7));
2232 AnyOfMatches(8, AnyOf(1, 2, 3, 4, 5, 6, 7, 8));
2233 AnyOfMatches(9, AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9));
2234 AnyOfMatches(10, AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10));
2240 // Also make sure AnyOf is defined in the right namespace and does not depend
2242 Matcher<int> m = ::testing::AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
2246 AnyOfMatches(50, AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
2255 // Tests that AnyOf(m1, ..., mn) describes itself properly.
2258 m = AnyOf(Le(1), Ge(3));
2262 m = AnyOf(Lt(0), Eq(1), Eq(2));
2267 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3));
2274 m = AnyOf(Le(0), Gt(10), 3, 5, 7);
2283 // Tests that AnyOf(m1, ..., mn) describes its negation properly.
2286 m = AnyOf(Le(1), Ge(3));
2290 m = AnyOf(Lt(0), Eq(1), Eq(2));
2295 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3));
2302 m = AnyOf(Le(0), Gt(10), 3, 5, 7);
2311 // Tests that monomorphic matchers are safely cast by the AnyOf matcher.
2317 Matcher<const int&> m = AnyOf(greater_than_5, less_than_10);
2318 Matcher<int&> m2 = AnyOf(greater_than_5, less_than_10);
2319 Matcher<int&> m3 = AnyOf(greater_than_5, m2);
2322 Matcher<const int&> m4 = AnyOf(greater_than_5, less_than_10, less_than_10);
2323 Matcher<int&> m5 = AnyOf(greater_than_5, less_than_10, less_than_10);
2332 m = AnyOf(GreaterThan(10), Lt(0));
2336 m = AnyOf(GreaterThan(10), GreaterThan(20));
2342 m = AnyOf(GreaterThan(10), Gt(20), GreaterThan(30));
2347 m = AnyOf(GreaterThan(10), GreaterThan(20), GreaterThan(30));
2354 m = AnyOf(GreaterThan(10), GreaterThan(20));
2360 m = AnyOf(GreaterThan(10), Lt(30));
2365 m = AnyOf(GreaterThan(30), GreaterThan(20));
3963 Matcher<vector<int> > m3 = SizeIs(AnyOf(0, 3));
4674 UnorderedElementsAre("a", "a", AnyOf("b", "c")), v, &listener))
4685 AnyOf(prefix + "{\n " + EMString(0, 0) +
4869 Pair(AnyOf(1, 2), 1),