Lines Matching defs:matcher

110 // Tests implementing a monomorphic matcher using MatchAndExplain().
139 // Tests default-constructing a matcher.
178 // Test that a matcher parameterized with an abstract class compiles.
297 // matcher from its implementation using the old API.
321 // Using a polymorphic matcher to match a reference type.
329 // Using a polymorphic matcher to match a value type.
336 // Tests implementing a polymorphic matcher using MatchAndExplain().
387 // Tests that MatcherCast<T>(m) works when m is a polymorphic matcher.
504 // Tests that MatcherCast<T>(m) works when m is a neither a matcher nor
506 // of the matcher has operator==() overload accepting m.
585 // Verify that the matcher holds a reference to n, not to its temporary copy.
609 // Tests that SafeMatcherCast<T>(m) works when m is a polymorphic matcher.
709 // Verify that the matcher holds a reference to n, not to its temporary copy.
730 // Tests a matcher for a value type.
735 // Tests a matcher for a reference type.
757 // Tests a matcher for a value type.
762 // Tests a matcher for a reference type.
773 // Tests that _ can be used as a matcher for any type and matches any
776 // Uses _ as a matcher for a value type.
781 // Uses _ as a matcher for a reference type.
1109 // Test that Ref(non_const_varialbe) can be used as a matcher for a
2231 Matcher<Base*> matcher = WhenDynamicCastTo<Derived*>(Pointee(_));
2234 EXPECT_EQ(prefix + "points to a value that is anything", Describe(matcher));
2236 DescribeNegation(matcher));
2240 Matcher<Base*> matcher = WhenDynamicCastTo<Derived*>(Pointee(_));
2242 EXPECT_THAT(Explain(matcher, null), HasSubstr("NULL"));
2244 EXPECT_TRUE(matcher.Matches(&derived));
2245 EXPECT_THAT(Explain(matcher, &derived), HasSubstr("which points to "));
2247 // With references, the matcher itself can fail. Test for that one.
2296 // Tests that when AllOf() fails, only the first failing matcher is
2303 // Tests that when AllOf() fails, only the first failing matcher is
2310 // Tests that when AllOf() fails, only the first failing matcher is