Lines Matching defs:matcher
111 // Tests implementing a monomorphic matcher using MatchAndExplain().
140 // Tests default-constructing a matcher.
179 // Test that a matcher parameterized with an abstract class compiles.
298 // matcher from its implementation using the old API.
322 // Using a polymorphic matcher to match a reference type.
330 // Using a polymorphic matcher to match a value type.
337 // Tests implementing a polymorphic matcher using MatchAndExplain().
388 // Tests that MatcherCast<T>(m) works when m is a polymorphic matcher.
505 // Tests that MatcherCast<T>(m) works when m is a neither a matcher nor
507 // of the matcher has operator==() overload accepting m.
586 // Verify that the matcher holds a reference to n, not to its temporary copy.
610 // Tests that SafeMatcherCast<T>(m) works when m is a polymorphic matcher.
710 // Verify that the matcher holds a reference to n, not to its temporary copy.
731 // Tests a matcher for a value type.
736 // Tests a matcher for a reference type.
758 // Tests a matcher for a value type.
763 // Tests a matcher for a reference type.
774 // Tests that _ can be used as a matcher for any type and matches any
777 // Uses _ as a matcher for a value type.
782 // Uses _ as a matcher for a reference type.
1110 // Test that Ref(non_const_varialbe) can be used as a matcher for a
2254 Matcher<Base*> matcher = WhenDynamicCastTo<Derived*>(Pointee(_));
2257 EXPECT_EQ(prefix + "points to a value that is anything", Describe(matcher));
2259 DescribeNegation(matcher));
2263 Matcher<Base*> matcher = WhenDynamicCastTo<Derived*>(Pointee(_));
2265 EXPECT_THAT(Explain(matcher, null), HasSubstr("NULL"));
2267 EXPECT_TRUE(matcher.Matches(&derived));
2268 EXPECT_THAT(Explain(matcher, &derived), HasSubstr("which points to "));
2270 // With references, the matcher itself can fail. Test for that one.
2319 // Tests that when AllOf() fails, only the first failing matcher is
2326 // Tests that when AllOf() fails, only the first failing matcher is
2333 // Tests that when AllOf() fails, only the first failing matcher is