1 #ifndef HAMCRESTQT_SUBSTRINGMATCHER_H
2 #define HAMCRESTQT_SUBSTRINGMATCHER_H
5 #include "basematcher.h"
12 virtual bool matches(
const QString &item)
const
14 return evalSubstringOf(item);
33 virtual bool evalSubstringOf(
const QString &str)
const = 0;
34 virtual QString relationship()
const = 0;
42 #endif // HAMCRESTQT_SUBSTRINGMATCHER_H
A description of a Matcher.
Definition: description.h:17
virtual void describeTo(Description &description) const
Generates a description of the object.
Definition: substringmatcher.h:17
virtual bool matches(const QString &item) const
Evaluates the matcher for argument item.
Definition: substringmatcher.h:12
Description & appendValue(const T &value)
Appends an arbitrary value to the description.
Definition: description.h:90
Definition: substringmatcher.h:9
BaseClass for all Matcher implementations.
Definition: basematcher.h:17
virtual Description & appendText(const QString &text)=0
Appends some plain text to the description.
virtual void describeMismatch(const QString &item, Description &description) const
Generate a description of why the matcher has not accepted the item.
Definition: substringmatcher.h:25