Calculates the logical conjunction of multiple matchers. More...
#include <allof.h>
Public Member Functions | |
AllOf (const QList< QSharedPointer< Matcher< T > > > &m) | |
virtual bool | matches (const T &item, Description &mismatch) const |
virtual void | describeTo (Description &description) const |
Generates a description of the object. More... | |
Public Member Functions inherited from HamcrestQt::DiagnosingMatcher< T > | |
virtual bool | matches (const T &item) const |
Evaluates the matcher for argument item. More... | |
virtual void | describeMismatch (const T &item, Description &mismatchDescription) const |
Generate a description of why the matcher has not accepted the item. More... | |
Public Member Functions inherited from HamcrestQt::BaseMatcher< T > | |
virtual QString | toString () const |
Additional Inherited Members |
Calculates the logical conjunction of multiple matchers.
Evaluation is shortcut, so subsequent matchers are not called if an earlier matcher returns false
.
|
inlinevirtual |
Generates a description of the object.
The description may be part of a description of a larger object of which this is just a component, so it should be worded appropriately.
description | The description to be built or appended to. |
Implements HamcrestQt::SelfDescribing.