Home
last modified time | relevance | path

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

/freebsd/contrib/googletest/googlemock/test/
H A Dgmock-matchers-comparisons_test.cc394 m = MatcherCast<int16_t>(GtestGreaterThan(int64_t{5})); in TEST_P()
396 m = MatcherCast<int16_t>(Gt(int64_t{5})); in TEST_P()
440 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
445 Matcher<int> m4 = MatcherCast<int>(m3); in TEST()
453 Matcher<int> m6 = MatcherCast<int>(m5); in TEST()
465 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
475 Matcher<int&> m2 = MatcherCast<int&>(m1); in TEST()
484 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
491 Matcher<int> m4 = MatcherCast<int>(m3); in TEST()
498 Matcher<const int&> m2 = MatcherCast<const int&>(m1); in TEST()
[all …]
H A Dgmock_link_test.h158 using testing::MatcherCast;
689 Matcher<const char*> m = MatcherCast<const char*>(_); in TEST()
/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-matchers.h523 inline Matcher<T> MatcherCast(const M& matcher) { in MatcherCast() function
531 return MatcherCast<T>(polymorphic_matcher_or_value); in SafeMatcherCast()
560 return MatcherCast<T>(matcher); in SafeMatcherCast()
1545 matchers.push_back(MatcherCast<RawU>(matcher));
1626 return MatcherCast<const T&>(matcher_).Matches(x);
1959 : matcher_(MatcherCast<const Pointee&>(matcher)) {}
2018 : matcher_(MatcherCast<Pointer>(matcher)) {}
2313 matcher_(MatcherCast<InnerType>(matcher)) {}
2381 : size_matcher_(MatcherCast<SizeType>(size_matcher)) {}
2434 : distance_matcher_(MatcherCast<DistanceType>(distance_matcher)) {}
[all …]
/freebsd/contrib/googletest/docs/reference/
H A Dmatchers.md255 | `MatcherCast<T>(m)` | casts matcher `m` to type `Matcher<T>`. |
/freebsd/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