Lines Matching defs:AllOf
422 // Helper to allow easy testing of AllOf matchers with num parameters.
434 // Tests that AllOf(m1, ..., mn) matches any value that matches all of
438 m = AllOf(Le(2), Ge(1));
444 m = AllOf(Gt(0), Ne(1), Ne(2));
450 m = AllOf(Gt(0), Ne(1), Ne(2), Ne(3));
457 m = AllOf(Ge(0), Lt(10), Ne(3), Ne(5), Ne(7));
466 AllOfMatches(2, AllOf(Ne(1), Ne(2)));
467 AllOfMatches(3, AllOf(Ne(1), Ne(2), Ne(3)));
468 AllOfMatches(4, AllOf(Ne(1), Ne(2), Ne(3), Ne(4)));
469 AllOfMatches(5, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5)));
470 AllOfMatches(6, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6)));
471 AllOfMatches(7, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7)));
473 AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7), Ne(8)));
475 9, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7), Ne(8), Ne(9)));
476 AllOfMatches(10, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7), Ne(8),
479 50, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7), Ne(8), Ne(9),
488 // Tests that AllOf(m1, ..., mn) describes itself properly.
491 m = AllOf(Le(2), Ge(1));
494 m = AllOf(Gt(0), Ne(1), Ne(2));
499 m = AllOf(Gt(0), Ne(1), Ne(2), Ne(3));
505 m = AllOf(Ge(0), Lt(10), Ne(3), Ne(5), Ne(7));
512 // Tests that AllOf(m1, ..., mn) describes its negation properly.
515 m = AllOf(Le(2), Ge(1));
519 m = AllOf(Gt(0), Ne(1), Ne(2));
524 m = AllOf(Gt(0), Ne(1), Ne(2), Ne(3));
529 m = AllOf(Ge(0), Lt(10), Ne(3), Ne(5), Ne(7));
535 m = AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7), Ne(8), Ne(9),
537 AllOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
542 // Tests that monomorphic matchers are safely cast by the AllOf matcher.
548 Matcher<const int&> m = AllOf(greater_than_5, less_than_10);
549 Matcher<int&> m2 = AllOf(greater_than_5, less_than_10);
550 Matcher<int&> m3 = AllOf(greater_than_5, m2);
553 Matcher<const int&> m4 = AllOf(greater_than_5, less_than_10, less_than_10);
554 Matcher<int&> m5 = AllOf(greater_than_5, less_than_10, less_than_10);
563 m = AllOf(GreaterThan(10), Lt(30));
567 m = AllOf(GreaterThan(10), GreaterThan(20));
573 m = AllOf(GreaterThan(10), Lt(30), GreaterThan(20));
578 m = AllOf(GreaterThan(10), GreaterThan(20), GreaterThan(30));
586 m = AllOf(GreaterThan(10), GreaterThan(20));
592 m = AllOf(GreaterThan(10), Lt(30));
597 m = AllOf(GreaterThan(10), GreaterThan(20));
914 EXPECT_TRUE(Matches(AllOf(Ref(n), Eq(0)))(n));
1450 // Verify that using AllOf with many arguments doesn't cause
1452 EXPECT_THAT(0, testing::AllOf(_, _, _, _, _, _, _, _, _,
1453 testing::AllOf(_, _, _, _, _, _, _, _, _, _)));
1465 // Verifies that the implementation of ::testing::AllOf and ::testing::AnyOf
1467 // name lookup will cause AllOf/AnyOf in the 'adl_test' namespace to be found
1470 // The matcher must be in the same namespace as AllOf/AnyOf to make argument
1478 bool AllOf(const T1& /*t1*/, const T2& /*t2*/) {
1484 testing::AllOf(M(), M(), M(), M(), M(), M(), M(), M(), M(), M()));
1501 EXPECT_THAT(p, AllOf(Pointee(Eq(3)), Pointee(Gt(0)), Pointee(Lt(5))));
1502 EXPECT_THAT(p, Not(AllOf(Pointee(Eq(3)), Pointee(Gt(0)), Pointee(Lt(3)))));