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

Public Member Functions

 DivisibleByImpl (int a_divider)
 
template<typename T >
bool MatchAndExplain (const T &n, MatchResultListener *listener) const
 
void DescribeTo (ostream *os) const
 
void DescribeNegationTo (ostream *os) const
 
void set_divider (int a_divider)
 
int divider () const
 

Detailed Description

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

Constructor & Destructor Documentation

◆ DivisibleByImpl()

testing::gmock_matchers_test::DivisibleByImpl::DivisibleByImpl ( int a_divider)
inlineexplicit

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

4614: divider_(a_divider) {}

Member Function Documentation

◆ DescribeNegationTo()

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

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

4628 {
4629 *os << "is not divisible by " << divider_;
4630 }
os_t os

◆ DescribeTo()

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

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

4624 {
4625 *os << "is divisible by " << divider_;
4626 }

◆ divider()

int testing::gmock_matchers_test::DivisibleByImpl::divider ( ) const
inline

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

4633{ return divider_; }

◆ MatchAndExplain()

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

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

4618 {
4619 *listener << "which is " << (n % divider_) << " modulo "
4620 << divider_;
4621 return (n % divider_) == 0;
4622 }

◆ set_divider()

void testing::gmock_matchers_test::DivisibleByImpl::set_divider ( int a_divider)
inline

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

4632{ divider_ = a_divider; }

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