Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::internal::AnyMatcherImpl< T > Class Template Reference

#include <gmock-matchers.h>

Inheritance diagram for testing::internal::AnyMatcherImpl< T >:
Collaboration diagram for testing::internal::AnyMatcherImpl< T >:

Public Member Functions

virtual bool MatchAndExplain (GTEST_REFERENCE_TO_CONST_(T), MatchResultListener *) const
 
virtual void DescribeTo (::std::ostream *os) const
 
virtual void DescribeNegationTo (::std::ostream *os) const
 
- Public Member Functions inherited from testing::MatcherInterface< GTEST_REFERENCE_TO_CONST_(T)>
virtual bool MatchAndExplain (T x, MatchResultListener *listener) const=0
 
- Public Member Functions inherited from testing::MatcherDescriberInterface
virtual ~MatcherDescriberInterface ()
 

Detailed Description

template<typename T>
class testing::internal::AnyMatcherImpl< T >

Definition at line 1026 of file gmock-matchers.h.

Member Function Documentation

◆ DescribeNegationTo()

template<typename T >
virtual void testing::internal::AnyMatcherImpl< T >::DescribeNegationTo ( ::std::ostream * os) const
inlinevirtual

Reimplemented from testing::MatcherDescriberInterface.

Definition at line 1033 of file gmock-matchers.h.

1033 {
1034 // This is mostly for completeness' safe, as it's not very useful
1035 // to write Not(A<bool>()). However we cannot completely rule out
1036 // such a possibility, and it doesn't hurt to be prepared.
1037 *os << "never matches";
1038 }
os_t os

◆ DescribeTo()

template<typename T >
virtual void testing::internal::AnyMatcherImpl< T >::DescribeTo ( ::std::ostream * os) const
inlinevirtual

Implements testing::MatcherDescriberInterface.

Definition at line 1032 of file gmock-matchers.h.

1032{ *os << "is anything"; }

◆ MatchAndExplain()

template<typename T >
virtual bool testing::internal::AnyMatcherImpl< T >::MatchAndExplain ( GTEST_REFERENCE_TO_CONST_(T) ,
MatchResultListener *  ) const
inlinevirtual

Definition at line 1028 of file gmock-matchers.h.

1029 {
1030 return true;
1031 }

The documentation for this class was generated from the following file: