Lines Matching refs:Matcher
341 static Matcher<T> Cast(const M& polymorphic_matcher_or_value) { in Cast()
356 std::is_convertible<M, Matcher<T>>{}, in Cast()
362 static Matcher<T> CastImpl(const M& polymorphic_matcher_or_value, in CastImpl()
379 static Matcher<T> CastImpl(const M& value, in CastImpl()
382 return Matcher<T>(ImplicitCast_<T>(value)); in CastImpl()
395 static Matcher<T> CastImpl(const M& value,
404 class MatcherCastImpl<T, Matcher<U>> {
406 static Matcher<T> Cast(const Matcher<U>& source_matcher) { in Cast()
407 return Matcher<T>(new Impl(source_matcher)); in Cast()
413 explicit Impl(const Matcher<U>& source_matcher) in Impl()
451 const Matcher<U> source_matcher_;
458 class MatcherCastImpl<T, Matcher<T>> {
460 static Matcher<T> Cast(const Matcher<T>& matcher) { return matcher; } in Cast()
470 operator ::testing::Matcher<T>() const { // NOLINT(runtime/explicit)
471 return ::testing::Matcher<T>(new
492 operator ::testing::Matcher<F>() const { // NOLINT(runtime/explicit)
498 ::testing::Matcher<F> Apply(std::index_sequence<tuple_ids...>) const { in Apply()
499 return ::testing::Matcher<F>( in Apply()
514 inline Matcher<T> MatcherCast(const M& matcher) { in MatcherCast()
521 inline Matcher<T> SafeMatcherCast(const M& polymorphic_matcher_or_value) { in SafeMatcherCast()
535 inline Matcher<T> SafeMatcherCast(const Matcher<U>& matcher) { in SafeMatcherCast()
558 Matcher<T> A();
588 bool MatchPrintAndExplain(Value& value, const Matcher<T>& matcher, in MatchPrintAndExplain()
820 operator Matcher<Super&>() const {
1131 const Matcher<const std::string&>& internal_matcher)
1160 const Matcher<const std::string&> internal_matcher_;
1175 operator Matcher<::std::tuple<T1, T2>>() const {
1176 return Matcher<::std::tuple<T1, T2>>(new Impl<const ::std::tuple<T1, T2>&>);
1179 operator Matcher<const ::std::tuple<T1, T2>&>() const {
1236 explicit NotMatcherImpl(const Matcher<T>& matcher) : matcher_(matcher) {}
1252 const Matcher<T> matcher_;
1265 operator Matcher<T>() const {
1266 return Matcher<T>(new NotMatcherImpl<T>(SafeMatcherCast<T>(matcher_)));
1280 explicit AllOfMatcherImpl(std::vector<Matcher<T>> matchers)
1331 const std::vector<Matcher<T>> matchers_;
1353 operator Matcher<T>() const {
1354 std::vector<Matcher<T>> values;
1356 return Matcher<T>(new CombiningMatcher<T>(std::move(values)));
1361 void CreateVariadicMatcher(std::vector<Matcher<T>>* values,
1369 std::vector<Matcher<T>>*,
1385 explicit AnyOfMatcherImpl(std::vector<Matcher<T>> matchers)
1436 const std::vector<Matcher<T>> matchers_;
1454 operator Matcher<T>() const { // NOLINT(runtime/explicit)
1475 operator Matcher<U>() const { // NOLINT
1477 std::vector<Matcher<RawU>> matchers;
1482 return Matcher<U>(new MatcherImpl<RawU>(std::move(matchers)));
1591 const Matcher<const T&> matcher = SafeMatcherCast<const T&>(matcher_);
1767 operator Matcher<FloatType>() const {
1772 operator Matcher<const FloatType&>() const {
1777 operator Matcher<FloatType&>() const {
1810 operator Matcher<::std::tuple<T1, T2>>() const {
1815 operator Matcher<const ::std::tuple<T1, T2>&>() const {
1835 return static_cast<Matcher<FloatType>>(fm).MatchAndExplain(
1840 return static_cast<Matcher<FloatType>>(fm).MatchAndExplain(
1880 operator Matcher<Pointer>() const {
1881 return Matcher<Pointer>(new Impl<const Pointer&>(matcher_));
1915 const Matcher<const Pointee&> matcher_;
1939 operator Matcher<PointerType>() const { // NOLINT
1940 return Matcher<PointerType>(new Impl<const PointerType&>(matcher_));
1973 Matcher<Pointer> matcher_;
1989 explicit WhenDynamicCastToMatcherBase(const Matcher<To>& matcher)
2003 const Matcher<To> matcher_;
2018 explicit WhenDynamicCastToMatcher(const Matcher<To>& matcher)
2033 explicit WhenDynamicCastToMatcher(const Matcher<To&>& matcher)
2055 const Matcher<const FieldType&>& matcher)
2059 const Matcher<const FieldType&>& matcher)
2103 const Matcher<const FieldType&> matcher_;
2120 PropertyMatcher(Property property, const Matcher<RefToConstProperty>& matcher)
2126 const Matcher<RefToConstProperty>& matcher)
2171 const Matcher<RefToConstProperty> matcher_;
2226 operator Matcher<T>() const {
2227 return Matcher<T>(
2288 const Matcher<ResultType> matcher_;
2304 operator Matcher<Container>() const {
2305 return Matcher<Container>(new Impl<const Container&>(size_matcher_));
2336 const Matcher<SizeType> size_matcher_;
2352 operator Matcher<Container>() const {
2353 return Matcher<Container>(new Impl<const Container&>(distance_matcher_));
2392 const Matcher<DistanceType> distance_matcher_;
2504 operator Matcher<LhsContainer>() const {
2562 const Matcher<const ::std::vector<LhsValue>&> matcher_;
2599 operator Matcher<LhsContainer>() const {
2604 return Matcher<LhsContainer>(
2685 const Matcher<InnerMatcherArg> mono_tuple_matcher_;
2731 bool MatchAndExplainImpl(const Matcher<size_t>& count_matcher,
2780 const Matcher<const Element&> inner_matcher_;
2842 Matcher<size_t> count_matcher)
2866 const Matcher<size_t> count_matcher_;
2873 explicit ContainsTimesMatcher(M m, Matcher<size_t> count_matcher)
2877 operator Matcher<Container>() const { // NOLINT
2878 return Matcher<Container>(new ContainsTimesMatcherImpl<const Container&>(
2884 const Matcher<size_t> count_matcher_;
2894 operator Matcher<Container>() const { // NOLINT
2895 return Matcher<Container>(
2899 ContainsTimesMatcher<M> Times(Matcher<size_t> count_matcher) const {
2914 operator Matcher<Container>() const { // NOLINT
2915 return Matcher<Container>(
2990 const Matcher<const KeyType&> inner_matcher_;
3000 operator Matcher<PairType>() const {
3001 return Matcher<PairType>(
3016 operator Matcher<Type>() const { // NOLINT
3017 return Matcher<Type>(new Impl<const Type&>(matcher_));
3047 const Matcher<Address> matcher_;
3132 const Matcher<const FirstType&> first_matcher_;
3133 const Matcher<const SecondType&> second_matcher_;
3144 operator Matcher<PairType>() const {
3145 return Matcher<PairType>(
3281 Matcher<const typename std::tuple_element<I, UnpackedType>::type&>...>;
3356 operator Matcher<Struct>() const { // NOLINT
3357 return Matcher<Struct>(
3508 ::std::vector<Matcher<const Element&>> matchers_;
3685 ::std::vector<Matcher<const Element&>> matchers_;
3693 Matcher<Target> operator()(const Arg& a) const {
3706 operator Matcher<Container>() const {
3710 typedef ::std::vector<Matcher<const Element&>> MatcherVec;
3715 return Matcher<Container>(
3732 operator Matcher<Container>() const {
3741 typedef ::std::vector<Matcher<const Element&>> MatcherVec;
3746 return Matcher<Container>(new ElementsAreMatcherImpl<const Container&>(
3764 operator Matcher<Container>() const {
3765 return Matcher<Container>(
3783 operator Matcher<Container>() const {
3788 return Matcher<Container>(new ElementsAreMatcherImpl<const Container&>(
3814 operator Matcher<T>() const {
3853 const Matcher<const ArgTuple&> mono_tuple2_matcher_;
3888 operator Matcher<Optional>() const {
3889 return Matcher<Optional>(new Impl<const Optional&>(value_matcher_));
3926 const Matcher<ValueType> value_matcher_;
3944 explicit VariantMatcher(::testing::Matcher<const T&> matcher)
3990 const ::testing::Matcher<const T&> matcher_;
4005 explicit AnyCastMatcher(const ::testing::Matcher<const T&>& matcher)
4051 const ::testing::Matcher<const T&> matcher_;
4063 using MonomorphicInnerMatcher = Matcher<const SelectedArgs&>;
4126 operator Matcher<ArgsTuple>() const { // NOLINT
4242 inline Matcher<T> A() {
4248 inline Matcher<T> An() {
4253 Matcher<T> internal::MatcherCastImpl<T, M>::CastImpl(
4356 WhenDynamicCastTo(const Matcher<To>& inner_matcher) {
5087 Matcher<T> monomorphic_matcher = SafeMatcherCast<T>(matcher);
5250 const Matcher<const T&>& matcher) {
5261 const Matcher<const T&>& matcher) {
5274 WithWhatMatcherImpl(Matcher<std::string> matcher)
5295 const Matcher<std::string> matcher_;
5299 Matcher<std::string> m) {
5340 ExceptionMatcherImpl(Matcher<const Err&> matcher)
5382 const Matcher<const Err&> matcher_;
5449 class name##Matcher \
5450 : public ::testing::internal::MatcherBaseImpl<name##Matcher> { \
5478 inline name##Matcher GMOCK_INTERNAL_WARNING_PUSH() \
5485 bool name##Matcher::gmock_Impl<arg_type>::MatchAndExplain( \