Home
last modified time | relevance | path

Searched refs:MatcherCast (Results 1 – 5 of 5) sorted by relevance

/freebsd-14.2/contrib/googletest/googlemock/test/
H A Dgmock-matchers-comparisons_test.cc392 m = MatcherCast<int16_t>(GtestGreaterThan(int64_t{5})); in TEST_P()
394 m = MatcherCast<int16_t>(Gt(int64_t{5})); in TEST_P()
420 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
425 Matcher<int> m4 = MatcherCast<int>(m3); in TEST()
436 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
444 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
452 Matcher<const int&> m2 = MatcherCast<const int&>(m1); in TEST()
460 Matcher<int&> m2 = MatcherCast<int&>(m1); in TEST()
470 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
478 Matcher<int> m = MatcherCast<int>(42); in TEST()
[all …]
H A Dgmock_link_test.h158 using testing::MatcherCast;
680 Matcher<const char*> m = MatcherCast<const char*>(_); in TEST()
/freebsd-14.2/contrib/googletest/googlemock/include/gmock/
H A Dgmock-matchers.h514 inline Matcher<T> MatcherCast(const M& matcher) { in MatcherCast() function
522 return MatcherCast<T>(polymorphic_matcher_or_value); in SafeMatcherCast()
553 return MatcherCast<T>(matcher); in SafeMatcherCast()
1480 matchers.push_back(MatcherCast<RawU>(matcher));
1561 return MatcherCast<const T&>(matcher_).Matches(x);
1894 : matcher_(MatcherCast<const Pointee&>(matcher)) {}
1953 : matcher_(MatcherCast<Pointer>(matcher)) {}
2245 matcher_(MatcherCast<ResultType>(matcher)) {}
3026 : matcher_(MatcherCast<Address>(matcher)) {}
3693 return MatcherCast<Target>(a);
[all …]
/freebsd-14.2/contrib/googletest/docs/reference/
H A Dmatchers.md252 | `MatcherCast<T>(m)` | casts matcher `m` to type `Matcher<T>`. |
/freebsd-14.2/contrib/googletest/docs/
H A Dgmock_cook_book.md965 `MatcherCast<T>(m)`. The difference is that `MatcherCast` works as long as you
968 `MatcherCast` essentially lets you bypass C++'s type system (`static_cast` isn't