Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::gmock_matchers_test::PolymorphicIsEvenImpl Class Reference

Public Member Functions

void DescribeTo (ostream *os) const
 
void DescribeNegationTo (ostream *os) const
 
template<typename T >
bool MatchAndExplain (const T &x, MatchResultListener *listener) const
 

Detailed Description

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

Member Function Documentation

◆ DescribeNegationTo()

void testing::gmock_matchers_test::PolymorphicIsEvenImpl::DescribeNegationTo ( ostream * os) const
inline

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

567 {
568 *os << "is odd";
569 }
os_t os

◆ DescribeTo()

void testing::gmock_matchers_test::PolymorphicIsEvenImpl::DescribeTo ( ostream * os) const
inline

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

565{ *os << "is even"; }

◆ MatchAndExplain()

template<typename T >
bool testing::gmock_matchers_test::PolymorphicIsEvenImpl::MatchAndExplain ( const T & x,
MatchResultListener * listener ) const
inline

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

572 {
573 // Verifies that we can stream to the listener directly.
574 *listener << "% " << 2;
575 if (listener->stream() != NULL) {
576 // Verifies that we can stream to the listener's underlying stream
577 // too.
578 *listener->stream() << " == " << (x % 2);
579 }
580 return (x % 2) == 0;
581 }
Here is the call graph for this function:

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