#include <Matchers.hpp>
Public Member Functions | |
| BetweenEndInclusiveMatcher (const ValueType &begin, const ValueType &end) | |
| bool | compare (const ValueType &actual) const override |
| When implemented, compares the provided actual value against a predefined condition. | |
| ::QString | description (const ValueType &actual) const override |
| When implemented, provides a textual description of the current match result. | |
Public Member Functions inherited from qt_mocks::common_matchers::Matcher< ValueType > | |
| Matcher (const ExpectedValue< ValueType > &value) | |
| Constructs the object with the given expected value. | |
| Matcher (const Matcher &other) | |
| Copy constructor that creates a new matcher by copying the state of another matcher. | |
| Matcher (Matcher &&other) noexcept | |
| Move constructor that initialises the object by transferring the state from another instance. | |
| Matcher (std::unique_ptr< ExpectedValue< ValueType > > expected) | |
| Constructs the object with the given the expected value object. | |
| virtual | ~Matcher ()=default |
| const ExpectedValue< ValueType > & | expected () const noexcept |
| Retrieves the expected value of the matcher. | |
| bool | hasExpected () const noexcept |
| Checks if an expected value is set for the matcher. | |
| Matcher & | operator= (const Matcher &other) |
| Move assignment that changes the object by transferring the state from another instance. | |
| Matcher & | operator= (Matcher &&other) noexcept |
| Move assignment that changes the object by transferring the state from another instance. | |
Public Attributes | |
| ValueType | end_ |
Additional Inherited Members | |
Public Types inherited from qt_mocks::common_matchers::Matcher< ValueType > | |
| using | MatcherValueType = ValueType |
| The type of value to match against. | |
| qt_mocks::common_matchers::BetweenEndInclusiveMatcher< ValueType >::BetweenEndInclusiveMatcher | ( | const ValueType & | begin, |
| const ValueType & | end ) |
|
nodiscardoverridevirtual |
When implemented, compares the provided actual value against a predefined condition.
This method performs a comparison between the given value and the expected or predefined condition to determine if they match.
| actual | The value to compare against the predefined condition. |
Implements qt_mocks::common_matchers::Matcher< ValueType >.
|
nodiscardoverridevirtual |
When implemented, provides a textual description of the current match result.
It generates a human-readable description of the comparison between the expected and actual values, enabling easier debugging and clear understanding of matcher evaluations.
| actual | The actual value being matched against. |
Implements qt_mocks::common_matchers::Matcher< ValueType >.
| ValueType qt_mocks::common_matchers::BetweenEndInclusiveMatcher< ValueType >::end_ |