Home | History | Annotate | Download | only in gmock

Lines Matching full:matchers

34 // This file implements some commonly used argument matchers.  More
35 // matchers can be defined by the user implementing the
69 // is impossible if we pass matchers by pointers. It also eases
624 // This overload handles polymorphic matchers and values only since
625 // monomorphic matchers are handled by the next one.
631 // This overload handles monomorphic matchers.
698 // Value cannot be passed by const reference, because some matchers take a
738 // TuplePrefix<N>::ExplainMatchFailuresTo(matchers, values, os)
739 // describes failures in matching the first N fields of matchers
743 static void ExplainMatchFailuresTo(const MatcherTuple& matchers,
747 TuplePrefix<N - 1>::ExplainMatchFailuresTo(matchers, values, os);
752 get<N - 1>(matchers);
760 get<N - 1>(matchers).DescribeTo(os);
785 static void ExplainMatchFailuresTo(const MatcherTuple& /* matchers */,
791 // matchers in matcher_tuple match the corresponding fields in
807 // Describes failures in matching matchers against values. If there
810 void ExplainMatchFailureTupleTo(const MatcherTuple& matchers,
814 matchers, values, os);
1089 // Polymorphic helper functions for narrow and wide string matchers.
1122 // String matchers.
1124 // Implements equality-based string matchers like StrEq, StrCaseNe, and etc.
1323 // Implements polymorphic matchers MatchesRegex(regex) and
1551 // MatcherList provides mechanisms for storing a variable number of matchers in
1557 // * Tail denotes the types of the remaining matchers of the list.
1571 // CreateMatcher<T> creates a Matcher<T> from a given list of matchers (built
1572 // by BuildList()). CombiningMatcher<T> is used to combine the matchers of the
1576 static Matcher<T> CreateMatcher(const ListType& matchers) {
1578 SafeMatcherCast<T>(matchers.first),
1580 matchers.second)));
1596 static Matcher<T> CreateMatcher(const ListType& matchers) {
1598 SafeMatcherCast<T>(matchers.first),
1599 SafeMatcherCast<T>(matchers.second)));
1605 // CombiningMatcher<T> is used to recursively combine the provided matchers
1610 VariadicMatcher(const Args&... matchers) // NOLINT
1611 : matchers_(MatcherListType::BuildList(matchers...)) {}
1615 // all of the provided matchers (Matcher1, Matcher2, ...) can match.
1636 // matches a value that matches all of the matchers m_1, ..., and m_n.
1730 // matches a value that matches at least one of the matchers m_1, ...,
2999 // type with its two matchers. See Pair() function below.
3117 // element matchers.
3175 // Go through the elements and matchers in pairs, until we reach
3176 // the end of either the elements or the matchers, or until we find a
3253 // Connectivity matrix of (elements X matchers), in element-major order.
3315 // element matchers are alive).
3356 // element matchers.
3461 MatcherVec matchers;
3462 matchers.reserve(::testing::tuple_size<MatcherTuple>::value);
3464 ::std::back_inserter(matchers));
3466 matchers.begin(), matchers.end()));
3486 MatcherVec matchers;
3487 matchers.reserve(::testing::tuple_size<MatcherTuple>::value);
3489 ::std::back_inserter(matchers));
3491 matchers.begin(), matchers.end()));
3638 // can be either a sequence of values or a sequence of matchers.
3755 // We could define similar monomorphic matchers for other comparison
3901 // matchers of compatible types. For example, it allows
3919 // matchers of compatible types. For example, it allows
3945 // matchers of compatible types. For example, it allows
3950 // String matchers.
4024 // Wide string matchers.
4237 ::std::vector<internal::BoundSecondMatcher<Tuple2Matcher, Second> > matchers;
4240 matchers.push_back(
4245 return UnorderedElementsAreArray(matchers);
4359 // gmock-generated-matchers.h for the cases supported by pre C++11 compilers.
4361 inline internal::AllOfMatcher<Args...> AllOf(const Args&... matchers) {
4362 return internal::AllOfMatcher<Args...>(matchers...);
4366 inline internal::AnyOfMatcher<Args...> AnyOf(const Args&... matchers) {
4367 return internal::AnyOfMatcher<Args...>(matchers...);
4382 // These macros allow using matchers to check values in Google Test
4393 // Include any custom callback matchers added by the local installation.
4396 #include "gmock/internal/custom/gmock-matchers.h"