#include <Matchers.hpp>
Public Member Functions | |
| bool | compare (const long double &actual) const override |
| Performs an equaliy compairson against a supplied value. | |
| bool | compare (const long double &actual) const override |
| When implemented, compares the provided actual value against a predefined condition. | |
| ::QString | description (const long double &actual) const override |
| Provides a textual description of the current match result. | |
| ::QString | description (const long double &actual) const override |
| When implemented, provides a textual description of the current match result. | |
Public Member Functions inherited from qt_mocks::common_matchers::Matcher< long double > | |
| Matcher (const ExpectedValue< long double > &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< long double > > expected) | |
| Constructs the object with the given the expected value object. | |
| virtual | ~Matcher ()=default |
| const ExpectedValue< long double > & | 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. | |
Additional Inherited Members | |
Public Types inherited from qt_mocks::common_matchers::Matcher< long double > | |
| using | MatcherValueType |
| The type of value to match against. | |
|
nodiscardoverridevirtual |
Performs an equaliy compairson against a supplied value.
| actual | The generated value to compare against the expected value. |
Implements qt_mocks::common_matchers::Matcher< long double >.
|
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< long double >.
|
nodiscardoverridevirtual |
Provides a textual description of the current match result.
It generates a human-readable description of the comparison between the expected and actual values, including the expected and actual values themselves.
| actual | The actual value being matched against. |
Implements qt_mocks::common_matchers::Matcher< long double >.
|
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< long double >.