Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::gmock_matchers_test::EvenMatcherImpl Class Reference
Inheritance diagram for testing::gmock_matchers_test::EvenMatcherImpl:
Collaboration diagram for testing::gmock_matchers_test::EvenMatcherImpl:

Public Member Functions

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

Detailed Description

Definition at line 258 of file gmock-matchers_test.cc.

Member Function Documentation

◆ DescribeTo()

virtual void testing::gmock_matchers_test::EvenMatcherImpl::DescribeTo ( ostream * os) const
inlinevirtual

Definition at line 265 of file gmock-matchers_test.cc.

265 {
266 *os << "is an even number";
267 }
os_t os

◆ MatchAndExplain()

virtual bool testing::gmock_matchers_test::EvenMatcherImpl::MatchAndExplain ( int x,
MatchResultListener *  ) const
inlinevirtual

Definition at line 260 of file gmock-matchers_test.cc.

261 {
262 return x % 2 == 0;
263 }

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