Simplify handling of some constraints. More...
Go to the source code of this file.
Namespaces | |
| namespace | mockpp |
Namespace for project "Mock Objects for C++". | |
Functions | |
| TypelessConstraint::AP | mockpp::any () |
| Creates a constraint that matches any invocation. | |
| TypelessConstraint::AP | mockpp::nothing () |
| Creates a constraint that never matches an invocation. | |
| template<typename T > | |
| Constraint< T >::AP | mockpp::outBound (const T &op) |
| Passes a value back via a reference (outbound value). | |
| template<typename T > | |
| Constraint< T >::AP | mockpp::eq (const T &op) |
| Creates a constraint that tests for equality. | |
| template<typename T > | |
| Constraint< T >::AP | mockpp::ne (const T &op) |
| Creates a constraint that tests for non-equality. | |
| template<typename T > | |
| Constraint< T >::AP | mockpp::eq (const T &operand, const T &deviation) |
| Creates a constraint that tests for near-equality. | |
| template<typename T > | |
| Constraint< T >::AP | mockpp::le (const T &value) |
| Creates a less-or-equal constraint. | |
| template<typename T > | |
| Constraint< T >::AP | mockpp::lt (const T &value) |
| Creates a less-than constraint. | |
| template<typename T > | |
| Constraint< T >::AP | mockpp::gt (const T &value) |
| Creates a greater-than constraint. | |
| template<typename T > | |
| Constraint< T >::AP | mockpp::ge (const T &value) |
| Creates a greater-or-equal constraint. | |
| template<typename T > | |
| Constraint< T >::AP | mockpp::same (const T &operand) |
| Creates a constraint that checks if an object is the same. | |
| template<typename ROOT , typename DERIVED > | |
| Constraint< ROOT * >::AP | mockpp::isA (const DERIVED &) |
| Creates a constraint that checks if an object is derived from a base class. | |
| template<typename ROOT , typename DERIVED > | |
| Constraint< ROOT * >::AP | mockpp::isA () |
| Creates a constraint that checks if an object is derived from a base class. | |
| template<typename S > | |
| Constraint< S >::AP | mockpp::stringContains (const S &substring) |
| Creates a constraint that checks for the occurence of a substring. | |
| template<typename S > | |
| Constraint< S >::AP | mockpp::startsWith (const S &substring) |
| Creates a constraint that checks for the occurence of a starting substring. | |
| template<typename S > | |
| Constraint< S >::AP | mockpp::endsWith (const S &substring) |
| Creates a constraint that checks for the occurence of a trailing substring. | |
| template<typename PCS > | |
| Constraint< std::basic_string < PCS > >::AP | mockpp::stringContains (const PCS *substring) |
| Creates a constraint that checks for the occurence of a substring. | |
| template<typename T > | |
| Constraint< T >::AP | mockpp::logic_not (const ConstraintHolder< T > &c) |
| Creates a constraint that negates another. | |
| template<typename T > | |
| Constraint< T >::AP | mockpp::logic_and (const ConstraintHolder< T > &left, const ConstraintHolder< T > &right, bool shortcut=true) |
| Creates a constraint to logically-and two other constraints. | |
| template<typename T > | |
| Constraint< T >::AP | mockpp::logic_or (const ConstraintHolder< T > &left, const ConstraintHolder< T > &right, bool shortcut=true) |
| Creates a constraint to logically-or two other constraints. | |
| template<typename T > | |
| TypelessStub< T >::AP | mockpp::returnValue (const T &o) |
| Creates a stub returning a value. | |
| template<typename R , typename T > | |
| TypelessStub< R >::AP | mockpp::randomValue (const T &max) |
| Creates a stub returning a random value. | |
| template<typename R , typename T > | |
| TypelessStub< R >::AP | mockpp::randomValue (const T &min, const T &max) |
| Creates a stub returning a random value. | |
| template<typename T , typename I > | |
| TypelessStub< T >::AP | mockpp::returnValue (I start, I end) |
| Creates a stub returning a value. | |
| TypelessStub< void >::AP | mockpp::isVoid () |
| Creates a stub returning a void stub. | |
| template<typename R , typename T > | |
| TypelessStub< R >::AP | mockpp::throwException (const T &val) |
| Creates a stub throwing a value. | |
| AutoPointer< TypelessMatcher > | mockpp::once () |
| Creates a matcher to verify a single invocation. | |
| AutoPointer< TypelessMatcher > | mockpp::atLeastOnce () |
| Creates a matcher to verify a minimum invocation count of one. | |
| AutoPointer< TypelessMatcher > | mockpp::unlimited () |
| Creates a matcher to verify an arbitrary invocation count. | |
| AutoPointer< TypelessMatcher > | mockpp::atMost (int expectedCount) |
| Creates a matcher to verify a maximal invocation count. | |
| AutoPointer< TypelessMatcher > | mockpp::atLeast (int expectedCount) |
| Creates a matcher to verify a minimal invocation count. | |
| AutoPointer< TypelessMatcher > | mockpp::exactly (int expectedCount) |
| Creates a matcher to verify an exact invocation count. | |
| AutoPointer< TypelessMatcher > | mockpp::never () |
| Creates a matcher to verify that the invactation never occured. | |
| AutoPointer< TypelessMatcher > | mockpp::never (const String &errorMessage) |
| Creates a matcher to verify that the invactation never occured. | |
Simplify handling of some constraints.
Definition in file ChainingMockObjectSupport.h.
1.6.1