Lines Matching full:anyof
602 // Helper to allow easy testing of AnyOf matchers with num parameters.
624 // Tests that AnyOf(m1, ..., mn) matches any value that matches at
628 m = AnyOf(Le(1), Ge(3)); in TEST()
633 m = AnyOf(Lt(0), Eq(1), Eq(2)); in TEST()
639 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3)); in TEST()
646 m = AnyOf(Le(0), Gt(10), 3, 5, 7); in TEST()
656 AnyOfMatches(2, AnyOf(1, 2)); in TEST()
657 AnyOfMatches(3, AnyOf(1, 2, 3)); in TEST()
658 AnyOfMatches(4, AnyOf(1, 2, 3, 4)); in TEST()
659 AnyOfMatches(5, AnyOf(1, 2, 3, 4, 5)); in TEST()
660 AnyOfMatches(6, AnyOf(1, 2, 3, 4, 5, 6)); in TEST()
661 AnyOfMatches(7, AnyOf(1, 2, 3, 4, 5, 6, 7)); in TEST()
662 AnyOfMatches(8, AnyOf(1, 2, 3, 4, 5, 6, 7, 8)); in TEST()
663 AnyOfMatches(9, AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9)); in TEST()
664 AnyOfMatches(10, AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)); in TEST()
669 // Also make sure AnyOf is defined in the right namespace and does not depend in TEST()
671 Matcher<int> m = ::testing::AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11); in TEST()
675 AnyOfMatches(50, AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, in TEST()
680 50, AnyOf("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", in TEST()
715 // Tests that AnyOf(m1, ..., mn) describes itself properly.
718 m = AnyOf(Le(1), Ge(3)); in TEST()
722 m = AnyOf(Lt(0), Eq(1), Eq(2)); in TEST()
725 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3)); in TEST()
729 m = AnyOf(Le(0), Gt(10), 3, 5, 7); in TEST()
736 // Tests that AnyOf(m1, ..., mn) describes its negation properly.
739 m = AnyOf(Le(1), Ge(3)); in TEST()
742 m = AnyOf(Lt(0), Eq(1), Eq(2)); in TEST()
746 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3)); in TEST()
752 m = AnyOf(Le(0), Gt(10), 3, 5, 7); in TEST()
759 // Tests that monomorphic matchers are safely cast by the AnyOf matcher.
765 Matcher<const int&> m = AnyOf(greater_than_5, less_than_10); in TEST()
766 Matcher<int&> m2 = AnyOf(greater_than_5, less_than_10); in TEST()
767 Matcher<int&> m3 = AnyOf(greater_than_5, m2); in TEST()
770 Matcher<const int&> m4 = AnyOf(greater_than_5, less_than_10, less_than_10); in TEST()
771 Matcher<int&> m5 = AnyOf(greater_than_5, less_than_10, less_than_10); in TEST()
780 m = AnyOf(GreaterThan(10), Lt(0)); in TEST_P()
784 m = AnyOf(GreaterThan(10), GreaterThan(20)); in TEST_P()
790 m = AnyOf(GreaterThan(10), Gt(20), GreaterThan(30)); in TEST_P()
795 m = AnyOf(GreaterThan(10), GreaterThan(20), GreaterThan(30)); in TEST_P()
803 m = AnyOf(GreaterThan(10), GreaterThan(20)); in TEST_P()
809 m = AnyOf(GreaterThan(10), Lt(30)); in TEST_P()
814 m = AnyOf(GreaterThan(30), GreaterThan(20)); in TEST_P()
1458 // Verify that using AnyOf with many arguments doesn't cause in TEST()
1460 EXPECT_THAT(0, testing::AnyOf(_, _, _, _, _, _, _, _, _, in TEST()
1461 testing::AnyOf(_, _, _, _, _, _, _, _, _, _))); in TEST()
1466 // Verifies that the implementation of ::testing::AllOf and ::testing::AnyOf
1468 // name lookup will cause AllOf/AnyOf in the 'adl_test' namespace to be found
1471 // The matcher must be in the same namespace as AllOf/AnyOf to make argument
1489 bool AnyOf(const T1&, const T2&) { in AnyOf() function
1495 testing::AnyOf(M(), M(), M(), M(), M(), M(), M(), M(), M(), M())); in TEST()
1508 EXPECT_THAT(p, AnyOf(Pointee(Eq(5)), Pointee(Lt(0)), Pointee(Lt(5)))); in TEST()
1509 EXPECT_THAT(p, Not(AnyOf(Pointee(Eq(5)), Pointee(Lt(0)), Pointee(Gt(5))))); in TEST()