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(IndexSequence<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_));
2404 const Matcher<DistanceType> distance_matcher_;
2516 operator Matcher<LhsContainer>() const {
2574 const Matcher<const ::std::vector<LhsValue>&> matcher_;
2611 operator Matcher<LhsContainer>() const {
2616 return Matcher<LhsContainer>(
2697 const Matcher<InnerMatcherArg> mono_tuple_matcher_;
2743 bool MatchAndExplainImpl(const Matcher<size_t>& count_matcher,
2792 const Matcher<const Element&> inner_matcher_;
2854 Matcher<size_t> count_matcher)
2878 const Matcher<size_t> count_matcher_;
2885 explicit ContainsTimesMatcher(M m, Matcher<size_t> count_matcher)
2889 operator Matcher<Container>() const { // NOLINT
2890 return Matcher<Container>(new ContainsTimesMatcherImpl<const Container&>(
2896 const Matcher<size_t> count_matcher_;
2906 operator Matcher<Container>() const { // NOLINT
2907 return Matcher<Container>(
2911 ContainsTimesMatcher<M> Times(Matcher<size_t> count_matcher) const {
2926 operator Matcher<Container>() const { // NOLINT
2927 return Matcher<Container>(
3001 const Matcher<const KeyType&> inner_matcher_;
3011 operator Matcher<PairType>() const {
3012 return Matcher<PairType>(
3027 operator Matcher<Type>() const { // NOLINT
3028 return Matcher<Type>(new Impl<const Type&>(matcher_));
3058 const Matcher<Address> matcher_;
3143 const Matcher<const FirstType&> first_matcher_;
3144 const Matcher<const SecondType&> second_matcher_;
3155 operator Matcher<PairType>() const {
3156 return Matcher<PairType>(
3292 Matcher<const typename std::tuple_element<I, UnpackedType>::type&>...>;
3367 operator Matcher<Struct>() const { // NOLINT
3368 return Matcher<Struct>(
3533 ::std::vector<Matcher<const Element&>> matchers_;
3716 ::std::vector<Matcher<const Element&>> matchers_;
3724 Matcher<Target> operator()(const Arg& a) const {
3737 operator Matcher<Container>() const {
3751 typedef ::std::vector<Matcher<const Element&>> MatcherVec;
3756 return Matcher<Container>(
3773 operator Matcher<Container>() const {
3792 typedef ::std::vector<Matcher<const Element&>> MatcherVec;
3797 return Matcher<Container>(new ElementsAreMatcherImpl<const Container&>(
3815 operator Matcher<Container>() const {
3816 return Matcher<Container>(
3834 operator Matcher<Container>() const {
3839 return Matcher<Container>(new ElementsAreMatcherImpl<const Container&>(
3865 operator Matcher<T>() const {
3904 const Matcher<const ArgTuple&> mono_tuple2_matcher_;
3939 operator Matcher<Optional>() const {
3940 return Matcher<Optional>(new Impl<const Optional&>(value_matcher_));
3977 const Matcher<ValueType> value_matcher_;
3995 explicit VariantMatcher(::testing::Matcher<const T&> matcher)
4041 const ::testing::Matcher<const T&> matcher_;
4056 explicit AnyCastMatcher(const ::testing::Matcher<const T&>& matcher)
4102 const ::testing::Matcher<const T&> matcher_;
4114 using MonomorphicInnerMatcher = Matcher<const SelectedArgs&>;
4177 operator Matcher<ArgsTuple>() const { // NOLINT
4293 inline Matcher<T> A() {
4299 inline Matcher<T> An() {
4304 Matcher<T> internal::MatcherCastImpl<T, M>::CastImpl(
4407 WhenDynamicCastTo(const Matcher<To>& inner_matcher) {
5138 Matcher<T> monomorphic_matcher = SafeMatcherCast<T>(matcher);
5301 const Matcher<const T&>& matcher) {
5312 const Matcher<const T&>& matcher) {
5325 WithWhatMatcherImpl(Matcher<std::string> matcher)
5346 const Matcher<std::string> matcher_;
5350 Matcher<std::string> m) {
5391 ExceptionMatcherImpl(Matcher<const Err&> matcher)
5433 const Matcher<const Err&> matcher_;
5500 class name##Matcher \
5501 : public ::testing::internal::MatcherBaseImpl<name##Matcher> { \
5529 inline name##Matcher GMOCK_INTERNAL_WARNING_PUSH() \
5536 bool name##Matcher::gmock_Impl<arg_type>::MatchAndExplain( \