Lines Matching defs:matcher

82   Matcher<int> matcher = Address(_);
83 EXPECT_EQ("has address that is anything", Describe(matcher));
85 DescribeNegation(matcher));
480 // to find one element per matcher, without reusing elements.
672 // Optional matcher.
1019 // This also tests that the description string can reference matcher
1037 // Tests that the matcher description can reference 'negation' and the
1038 // matcher parameters.
1119 // Tests that the description is calculated correctly from the matcher name.
1131 // Tests that a MATCHER_P matcher can be explicitly instantiated with
1177 // Tests that a MATCHER_Pn matcher can be explicitly instantiated with
1306 // Tests that the matcher body can promote the parameter types.
1365 // Tests that matcher-typed parameters can be used in Value() inside a
1600 // Verifies that a matcher defined using MATCHER() can work on
1610 // Verifies that a matcher defined using MATCHER_P*() can work on
1693 Matcher<std::function<void()>> matcher = Throws<std::runtime_error>();
1695 matcher.DescribeTo(&ss);
1701 Matcher<std::function<void()>> matcher = Throws<std::runtime_error>();
1703 EXPECT_TRUE(matcher.MatchAndExplain(
1709 Matcher<std::function<void()>> matcher = Throws<std::runtime_error>();
1711 EXPECT_FALSE(matcher.MatchAndExplain(
1718 Matcher<std::function<void()>> matcher = Throws<std::runtime_error>();
1720 EXPECT_FALSE(matcher.MatchAndExplain([]() { throw 10; }, &listener));
1726 Matcher<std::function<void()>> matcher = Throws<std::runtime_error>();
1728 EXPECT_FALSE(matcher.MatchAndExplain([]() { (void)0; }, &listener));
1736 Matcher<std::function<void()>> matcher = GetParam();
1738 matcher.DescribeTo(&ss);
1745 Matcher<std::function<void()>> matcher = GetParam();
1747 EXPECT_TRUE(matcher.MatchAndExplain(
1753 Matcher<std::function<void()>> matcher = GetParam();
1755 EXPECT_FALSE(matcher.MatchAndExplain(
1762 Matcher<std::function<void()>> matcher = GetParam();
1764 EXPECT_FALSE(matcher.MatchAndExplain([]() { throw 10; }, &listener));
1770 Matcher<std::function<void()>> matcher = GetParam();
1772 EXPECT_FALSE(matcher.MatchAndExplain([]() {}, &listener));
1784 Matcher<std::function<void()>> matcher =
1787 matcher.Matches([]() { throw std::runtime_error("error message"); }));
1789 matcher.Matches([]() { throw std::runtime_error("wrong message"); }));
1794 Matcher<std::function<void()>> matcher = Throws<uint32_t>(inner);
1795 EXPECT_TRUE(matcher.Matches([]() { throw(uint32_t) 10; }));
1796 EXPECT_FALSE(matcher.Matches([]() { throw(uint32_t) 11; }));
1803 Matcher<std::function<void()>> matcher =
1806 matcher.Matches([]() { throw std::runtime_error("error message"); }));
1807 EXPECT_FALSE(matcher.Matches(