|
| | MemberVariableMatcher (MemberVariableType ClassType::*const member, const MatcherType &matcher) |
| |
| bool | compare (const ClassType &actual) const override |
| | When implemented, compares the provided actual value against a predefined condition.
|
| |
| ::QString | description (const ClassType &actual) const override |
| | When implemented, provides a textual description of the current match result.
|
| |
| | Matcher (const ExpectedValue< ClassType > &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< ClassType > > expected) |
| | Constructs the object with the given the expected value object.
|
| |
| virtual | ~Matcher ()=default |
| |
| const ExpectedValue< ClassType > & | 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 ClassType, typename MemberVariableType, typename MatcherType>
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.
- Parameters
-
| actual | The value to compare against the predefined condition. |
- Returns
- True if the comparison succeeds; otherwise, false.
Implements qt_mocks::common_matchers::Matcher< ClassType >.
template<typename ClassType, typename MemberVariableType, typename MatcherType>
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< ClassType >.