1 #ifndef HAMCRESTQT_SHORTCUTCOMBINATION_H
2 #define HAMCRESTQT_SHORTCUTCOMBINATION_H
5 #include <QSharedPointer>
7 #include "basematcher.h"
17 void describeTo(
Description &description,
const QString &op)
const
19 description.
appendList(QStringLiteral(
"("), QString(
" %1 ").arg(op), QStringLiteral(
")"),
20 matchers.begin(), matchers.end());
24 virtual bool matches(
const T &item,
bool shortcut)
const
26 foreach (
const QSharedPointer<
Matcher<T> > &matcher, matchers) {
27 if (matcher->matches(item) == shortcut) {
36 QList<QSharedPointer<Matcher<T> > > matchers;
41 #endif // HAMCRESTQT_SHORTCUTCOMBINATION_H
A description of a Matcher.
Definition: description.h:17
A matcher over acceptable values.
Definition: matcher.h:21
Description & appendList(const QString &start, const QString &separator, const QString &end, Iterator startIterator, Iterator endIterator)
Appends a list of SelfDescribing objects to the description.
Definition: description.h:54
BaseClass for all Matcher implementations.
Definition: basematcher.h:17
Definition: shortcutcombination.h:12