|
| template<typename ValueType> |
| | SizeIsMatcher (const ValueType expected) |
| | Full initialisation constructor for creating a matcher based upon container size.
|
| |
| bool | compare (const Container &actual) const override |
| | Compares the size of the given container with the expected size.
|
| |
| ::QString | description (const Container &actual) const override |
| | Provides a textual description of the current match result.
|
| |
| | Matcher (const ExpectedValue< Container > &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< Container > > expected) |
| | Constructs the object with the given the expected value object.
|
| |
| virtual | ~Matcher ()=default |
| |
| const ExpectedValue< Container > & | 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 Container>
struct qt_mocks::common_matchers::SizeIsMatcher< Container >
A matcher that ensures that the container has the expected size.
- Template Parameters
-
| Container | The type of container to match against. |