class Cardinality
Defined at line 91 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-cardinalities.h
A Cardinality is a copyable and IMMUTABLE (except by assignment)
object that specifies how many times a mock function is expected to
be called. The implementation of Cardinality is just a std::shared_ptr
to const CardinalityInterface. Don't inherit from Cardinality!
Public Methods
void Cardinality ()
Constructs a null cardinality. Needed for storing Cardinality
objects in STL containers.
Defined at line 95 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-cardinalities.h
void Cardinality (const CardinalityInterface * impl)
Constructs a Cardinality from its implementation.
Defined at line 98 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-cardinalities.h
int ConservativeLowerBound ()
Conservative estimate on the lower/upper bound of the number of
calls allowed.
Defined at line 102 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-cardinalities.h
int ConservativeUpperBound ()
Defined at line 103 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-cardinalities.h
void DescribeActualCallCountTo (int actual_call_count, ::std::ostream * os)
Describes the given actual call count to an ostream.
bool IsSatisfiedByCallCount (int call_count)
Returns true if and only if call_count calls will satisfy this
cardinality.
Defined at line 107 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-cardinalities.h
bool IsSaturatedByCallCount (int call_count)
Returns true if and only if call_count calls will saturate this
cardinality.
Defined at line 113 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-cardinalities.h
bool IsOverSaturatedByCallCount (int call_count)
Returns true if and only if call_count calls will over-saturate this
cardinality, i.e. exceed the maximum number of allowed calls.
Defined at line 119 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-cardinalities.h
void DescribeTo (::std::ostream * os)
Describes self to an ostream
Defined at line 125 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-cardinalities.h