Tests if the argument is a string that contains a substring. More...
Public Member Functions | |
StringContains (const StringType &in_substring) | |
Constructs the object. | |
virtual | ~StringContains () |
Destroys the object. | |
virtual bool | eval (const StringType &o) const |
Evaluates the constraint. | |
virtual String | describeTo (String &buffer) const |
Appends the description of this object to the buffer. |
Tests if the argument is a string that contains a substring.
Definition at line 51 of file StringContains.h.
mockpp::StringContains< StringType >::StringContains | ( | const StringType & | in_substring | ) | [inline] |
Constructs the object.
in_substring | the substring to search |
Definition at line 58 of file StringContains.h.
virtual String mockpp::StringContains< StringType >::describeTo | ( | String & | buffer | ) | const [inline, virtual] |
Appends the description of this object to the buffer.
buffer | The buffer that the description is appended to. |
Implements mockpp::SelfDescribing.
Definition at line 82 of file StringContains.h.
virtual bool mockpp::StringContains< StringType >::eval | ( | const StringType & | o | ) | const [inline, virtual] |
Evaluates the constraint.
o | the object against which the constraint is evaluated. |
Implements mockpp::Constraint< StringType >.
Definition at line 73 of file StringContains.h.