|
| 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.
|
| |
| | 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.
|
| |
template<typename ValueType>
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.
- Parameters
-
| actual | The actual value being matched against. |
- Returns
- The detailed description of the match operation's expectation for successful pass.
Implements qt_mocks::common_matchers::Matcher< ValueType >.