1 #ifndef HAMCRESTQT_BASEMATCHER_H
2 #define HAMCRESTQT_BASEMATCHER_H
6 #include "description.h"
7 #include "stringdescription.h"
25 virtual QString toString()
const
33 #endif // HAMCRESTQT_BASEMATCHER_H
virtual QString toString() const
Returns the description as a string.
Definition: stringdescription.cpp:11
A description of a Matcher.
Definition: description.h:17
virtual void describeMismatch(const T &item, Description &description) const
Generate a description of why the matcher has not accepted the item.
Definition: basematcher.h:20
A matcher over acceptable values.
Definition: matcher.h:21
Description & appendValue(const T &value)
Appends an arbitrary value to the description.
Definition: description.h:90
BaseClass for all Matcher implementations.
Definition: basematcher.h:17
virtual Description & appendText(const QString &text)=0
Appends some plain text to the description.