An invocation count matcher that always fails upon invocation. More...

Public Member Functions | |
| TestFailureMatcher (const String &msg) | |
| Creates the object. | |
| virtual bool | matches () |
| Checks if an invocation matches the expectaton. | |
| virtual bool | hasDescription () |
| Does the object provide meaningful description via describeTo() ?. | |
| virtual void | incInvoked () |
| Increments the invocation count. | |
| virtual String | describeTo (String &buffer) const |
| Appends the description of this object to the buffer. | |
| virtual void | verify () |
| Verify that the expected value is within the allowed bounds. | |
An invocation count matcher that always fails upon invocation.
Definition at line 50 of file TestFailureMatcher.h.
| mockpp::TestFailureMatcher::TestFailureMatcher | ( | const String & | msg | ) |
Creates the object.
| msg | string to describe the failure |
Definition at line 44 of file TestFailureMatcher.cpp.
Appends the description of this object to the buffer.
| buffer | The buffer that the description is appended to. |
Implements mockpp::SelfDescribing.
Definition at line 68 of file TestFailureMatcher.cpp.
| bool mockpp::TestFailureMatcher::hasDescription | ( | ) | [virtual] |
Does the object provide meaningful description via describeTo() ?.
Implements mockpp::TypelessMatcher.
Definition at line 56 of file TestFailureMatcher.cpp.
| void mockpp::TestFailureMatcher::incInvoked | ( | ) | [virtual] |
Increments the invocation count.
Actually the invocation always fails.
Implements mockpp::TypelessMatcher.
Definition at line 62 of file TestFailureMatcher.cpp.
| bool mockpp::TestFailureMatcher::matches | ( | ) | [virtual] |
Checks if an invocation matches the expectaton.
Implements mockpp::TypelessMatcher.
Definition at line 50 of file TestFailureMatcher.cpp.
| void mockpp::TestFailureMatcher::verify | ( | ) | [virtual] |
Verify that the expected value is within the allowed bounds.
If it fails, an AssertionFailedError is thrown
Implements mockpp::Verifiable.
Definition at line 75 of file TestFailureMatcher.cpp.
1.6.1