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

#include <gmock-cardinalities.h>

Public Member Functions

 Cardinality ()
 
 Cardinality (const CardinalityInterface *impl)
 
int ConservativeLowerBound () const
 
int ConservativeUpperBound () const
 
bool IsSatisfiedByCallCount (int call_count) const
 
bool IsSaturatedByCallCount (int call_count) const
 
bool IsOverSaturatedByCallCount (int call_count) const
 
void DescribeTo (::std::ostream *os) const
 

Static Public Member Functions

static void DescribeActualCallCountTo (int actual_call_count, ::std::ostream *os)
 

Detailed Description

Definition at line 83 of file gmock-cardinalities.h.

Constructor & Destructor Documentation

◆ Cardinality() [1/2]

testing::Cardinality::Cardinality ( )
inline

Definition at line 87 of file gmock-cardinalities.h.

87{}

◆ Cardinality() [2/2]

testing::Cardinality::Cardinality ( const CardinalityInterface * impl)
inlineexplicit

Definition at line 90 of file gmock-cardinalities.h.

90: impl_(impl) {}

Member Function Documentation

◆ ConservativeLowerBound()

int testing::Cardinality::ConservativeLowerBound ( ) const
inline

Definition at line 94 of file gmock-cardinalities.h.

94{ return impl_->ConservativeLowerBound(); }
Here is the caller graph for this function:

◆ ConservativeUpperBound()

int testing::Cardinality::ConservativeUpperBound ( ) const
inline

Definition at line 95 of file gmock-cardinalities.h.

95{ return impl_->ConservativeUpperBound(); }
Here is the caller graph for this function:

◆ DescribeActualCallCountTo()

void testing::Cardinality::DescribeActualCallCountTo ( int actual_call_count,
::std::ostream * os )
static

Definition at line 130 of file gmock-cardinalities.cc.

131 {
132 if (actual_call_count > 0) {
133 *os << "called " << FormatTimes(actual_call_count);
134 } else {
135 *os << "never called";
136 }
137}
os_t os
Here is the caller graph for this function:

◆ DescribeTo()

void testing::Cardinality::DescribeTo ( ::std::ostream * os) const
inline

Definition at line 115 of file gmock-cardinalities.h.

115{ impl_->DescribeTo(os); }
Here is the caller graph for this function:

◆ IsOverSaturatedByCallCount()

bool testing::Cardinality::IsOverSaturatedByCallCount ( int call_count) const
inline

Definition at line 109 of file gmock-cardinalities.h.

109 {
110 return impl_->IsSaturatedByCallCount(call_count) &&
111 !impl_->IsSatisfiedByCallCount(call_count);
112 }

◆ IsSatisfiedByCallCount()

bool testing::Cardinality::IsSatisfiedByCallCount ( int call_count) const
inline

Definition at line 98 of file gmock-cardinalities.h.

98 {
99 return impl_->IsSatisfiedByCallCount(call_count);
100 }

◆ IsSaturatedByCallCount()

bool testing::Cardinality::IsSaturatedByCallCount ( int call_count) const
inline

Definition at line 103 of file gmock-cardinalities.h.

103 {
104 return impl_->IsSaturatedByCallCount(call_count);
105 }

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