Namespaces | |
| namespace | common_matchers |
| namespace | internal |
Classes | |
| class | ErrorRaiser |
| Encapsulates an error to be raised by a mocked function. More... | |
| struct | Expectations |
| A manager for collecting all function expectations for a given mocked object. Each expectation will be expected to be invoked in the order in which the expectations are built. More... | |
| class | ValueGenerator |
| Encapsulates a value to be generated by a mocked function. More... | |
| class | ValueGiver |
| Encapsulates a value to be returned by a mocked function. More... | |
Functions | |
| template<typename ClassType, typename MemberReturnType, typename MatcherType> | |
| common_matchers::MemberFunctionMatcher< ClassType, MemberReturnType, MatcherType > | accessor (MemberReturnType(ClassType::*memberFunction)() const, MatcherType matcher) |
| Creates a matcher that will expect that an object's no-argument member function meets the conditions of a matcher. This function is most often the accessor to an object's private or protected member variable. | |
| template<typename ... MatcherTypes> | |
| auto | allOf (MatcherTypes &&... matchers) |
| A matcher that ensures that all of the supplied matcher objects pass. | |
| template<typename ... MatcherTypes> | |
| auto | anyOf (MatcherTypes &&... matchers) |
| A matcher that ensures that any of the supplied matcher objects pass. | |
| template<typename ValueType> | |
| common_matchers::BetweenExclusiveMatcher< ValueType > | between (const ValueType &beginValue, const ValueType &endValue) |
| Creates a matcher that will expect that a value is between two values, exclusive, to the test value. | |
| template<typename ValueType> | |
| common_matchers::BetweenBeginInclusiveMatcher< ValueType > | betweenBeginInclusive (const ValueType &beginValue, const ValueType &endValue) |
| Creates a matcher that will expect that a value is between two values, beginning inclusive and ending exclusive, to the test value. | |
| template<typename ValueType> | |
| common_matchers::BetweenEndInclusiveMatcher< ValueType > | betweenEndInclusive (const ValueType &beginValue, const ValueType &endValue) |
| Creates a matcher that will expect that a value is between two values, beginning exclusive and ending inclusive, to the test value. | |
| template<typename ValueType> | |
| common_matchers::BetweenInclusiveMatcher< ValueType > | betweenInclusive (const ValueType &beginValue, const ValueType &endValue) |
| Creates a matcher that will expect that a value is between two values, beginning and ending inclusive, to the test value. | |
| template<typename ValueType> | |
| common_matchers::ContainsStringMatcher< ValueType > | containsString (const ValueType &expected) |
| Creates a matcher that checks if a value contains the specified substring. | |
| QT_MOCKS_EXPORT::QString | copyright () noexcept |
| Provides the copyright of the library. | |
| QT_MOCKS_EXPORT::QString | description () noexcept |
| Provides the description of the library. | |
| QT_MOCKS_EXPORT common_matchers::EqualMatcher<::QString > | equals (const char *const expected) |
| Creates a matcher that will expect that a value is equal to the matcher's expected value. | |
| template<typename ValueType> | |
| common_matchers::EqualMatcher< ValueType > | equals (const ValueType &expected) |
| Creates a matcher that will expect that a value is equal to the matcher's expected value. | |
| template<typename ClassType, typename MemberVariableType, typename MatcherType> | |
| common_matchers::MemberVariableMatcher< ClassType, MemberVariableType, MatcherType > | field (MemberVariableType ClassType::*const memberVariable, const MatcherType &matcher) |
| Creates a matcher that will expect that an object's member variable meets the conditions of a matcher. | |
| template<typename FunctionType> | |
| auto | generate (FunctionType &&generator) |
| template<typename ReturnType> | |
| ValueGiver< ReturnType > | give (ReturnType value) noexcept |
| template<typename ValueType> | |
| common_matchers::GreaterThanMatcher< ValueType > | greaterThan (const ValueType &expected) |
| Creates a matcher that will expect that a value is greater-than the matcher's expected value. | |
| template<typename ValueType> | |
| common_matchers::GreaterThanEqualMatcher< ValueType > | greaterThanEqual (const ValueType &expected) |
| Creates a matcher that will expect that a value is greater-than or equal to the matcher's expected value. | |
| QT_MOCKS_EXPORT common_matchers::BooleanMatcher | isFalse () |
| Creates a matcher that a value will be false against it. | |
| QT_MOCKS_EXPORT common_matchers::BooleanMatcher | isTrue () |
| Creates a matcher that a value will be true against it. | |
| template<typename ValueType> | |
| common_matchers::LessThanMatcher< ValueType > | lessThan (const ValueType &expected) |
| Creates a matcher that will expect that a value is less-than the matcher's expected value. | |
| template<typename ValueType> | |
| common_matchers::LessThanEqualMatcher< ValueType > | lessThanEqual (const ValueType &expected) |
| Creates a matcher that will expect that a value is less-than or equal to the matcher's expected value. | |
| QT_MOCKS_EXPORT::QString | licence () noexcept |
| Provides the licence of the library. | |
| QT_MOCKS_EXPORT::QString | metadataVersion () noexcept |
| Provides the semantic version with the metadata of the library. | |
| template<typename MatcherType> | |
| common_matchers::NegationMatcher< typename MatcherType::MatcherValueType > | not_ (MatcherType &&matcher) |
| Creates a matcher that will negate the result of another matcher. | |
| template<typename ValueType> | |
| common_matchers::NotEqualMatcher< ValueType > | notEquals (const ValueType &expected) |
| Creates a matcher that will expect that a value is not equal to the matcher's expected value. | |
| ::QTextStream & | operator<< (::QTextStream &stream, const long double value) |
| template<typename KeyType, typename ElementType> | |
| ::QTextStream & | operator<< (::QTextStream &stream, const std::map< KeyType, ElementType > &container) |
| template<typename FirstValueType, typename SecondValueType> | |
| ::QTextStream & | operator<< (::QTextStream &stream, const std::pair< FirstValueType, SecondValueType > &p) |
| template<typename ElementType> | |
| ::QTextStream & | operator<< (::QTextStream &stream, const std::set< ElementType > &container) |
| template<typename ElementType> | |
| ::QTextStream & | operator<< (::QTextStream &stream, const std::vector< ElementType > &container) |
| template<typename MissingStreamInsertionType> | |
| std::enable_if_t< ! internal::HasStreamInsertion< MissingStreamInsertionType >::value, ::QTextStream & > | operator<< (const internal::OstreamRef output, const MissingStreamInsertionType &object) |
| template<typename ExceptionType, typename ... ExceptionArguments> | |
| ErrorRaiser< ExceptionType > | raise (ExceptionArguments &&... arguments) |
| QT_MOCKS_EXPORT common_matchers::EqualMatcher< qsizetype > | sizeIsEqualTo (const qsizetype expected) |
| Creates a matcher that checks if a size value equals the expected value. | |
| QT_MOCKS_EXPORT common_matchers::GreaterThanMatcher< qsizetype > | sizeIsGreaterThan (const qsizetype expected) |
| Creates a matcher that checks if a size value is greater than the expected value. | |
| QT_MOCKS_EXPORT common_matchers::LessThanMatcher< qsizetype > | sizeIsLessThan (const qsizetype expected) |
| Creates a matcher that checks if a size value is less than the expected value. | |
| QT_MOCKS_EXPORT::QString | url () noexcept |
| Provides the URL of the library. | |
| QT_MOCKS_EXPORT::QString | version () noexcept |
| Provides the semantic version without the metadata of the library. | |
|
nodiscard |
Creates a matcher that will expect that an object's no-argument member function meets the conditions of a matcher. This function is most often the accessor to an object's private or protected member variable.
| ClassType | The type of the class the member points to. |
| MemberReturnType | The return type of the member function. |
| MatcherType | The type of the matcher to be negated. |
| memberFunction | A pointer to the no-argument member function within the object to use to obtain the actual value to compare against the matcher's expected value. |
| matcher | The matcher that tests the value of the object's member function. |
|
nodiscard |
A matcher that ensures that all of the supplied matcher objects pass.
| MatcherTypes | The types of each of the matcher to run. |
| matchers | The various matchers to run. |
|
nodiscard |
A matcher that ensures that any of the supplied matcher objects pass.
| MatcherTypes | The types of each of the matcher to run. |
| matchers | The various matchers to run. |
|
nodiscard |
Creates a matcher that will expect that a value is between two values, exclusive, to the test value.
| ValueType | This is the type the match object will compare against. |
| beginValue | The expected value must be greater than this value. |
| endValue | The expected value must be less than this value. |
|
nodiscard |
Creates a matcher that will expect that a value is between two values, beginning inclusive and ending exclusive, to the test value.
| ValueType | This is the type the match object will compare against. |
| beginValue | The expected value must be greater than or equal to this value. |
| endValue | The expected value must be less than this value. |
|
nodiscard |
Creates a matcher that will expect that a value is between two values, beginning exclusive and ending inclusive, to the test value.
| ValueType | This is the type the match object will compare against. |
| beginValue | The expected value must be greater than this value. |
| endValue | The expected value must be less than or equal to this value. |
|
nodiscard |
Creates a matcher that will expect that a value is between two values, beginning and ending inclusive, to the test value.
| ValueType | This is the type the match object will compare against. |
| beginValue | The expected value must be greater than or equal to this value. |
| endValue | The expected value must be less than or equal to this value. |
|
nodiscard |
Creates a matcher that checks if a value contains the specified substring.
| ValueType | The type of the value string to be matched. |
| expected | The substring that is expected to be contained in the value. |
|
nodiscardnoexcept |
Provides the copyright of the library.
|
nodiscardnoexcept |
Provides the description of the library.
|
nodiscard |
Creates a matcher that will expect that a value is equal to the matcher's expected value.
| ValueType | This is the type the match object will compare against. |
| expected | The expected value of the test value. |
|
nodiscard |
Creates a matcher that will expect that a value is equal to the matcher's expected value.
| ValueType | This is the type the match object will compare against. |
| expected | The expected value of the test value. |
|
nodiscard |
Creates a matcher that will expect that an object's member variable meets the conditions of a matcher.
| ClassType | The type of the class the member points to. |
| MemberVariableType | The type of the member variable. |
| MatcherType | The type of the matcher to be negated. |
| memberVariable | A pointer to the member variable contained within the object to use when comparing the actual value, the member variable, to the matcher's expected value. |
| matcher | The matcher that tests the value of the object's member variable. |
| auto qt_mocks::generate | ( | FunctionType && | generator | ) |
Creates a means to generate a value for a mocked function's return value.
| FunctionType | The callable type that takes no arguments and returns the value expected by the mocked function. |
| generator | The functor that generates a value upon each invocation. |
|
noexcept |
Creates a means to specify exactly what value should a mocked function return.
| ReturnType | The type of the value to be returned. |
| value | The value that should be returned. |
|
nodiscard |
Creates a matcher that will expect that a value is greater-than the matcher's expected value.
| ValueType | This is the type the match object will compare against. |
| expected | The expected value of the test value. |
|
nodiscard |
Creates a matcher that will expect that a value is greater-than or equal to the matcher's expected value.
| ValueType | This is the type the match object will compare against. |
| expected | The expected value of the test value. |
|
nodiscard |
Creates a matcher that a value will be false against it.
|
nodiscard |
Creates a matcher that a value will be true against it.
|
nodiscard |
Creates a matcher that will expect that a value is less-than the matcher's expected value.
| ValueType | This is the type the match object will compare against. |
| expected | The expected value of the test value. |
|
nodiscard |
Creates a matcher that will expect that a value is less-than or equal to the matcher's expected value.
| ValueType | This is the type the match object will compare against. |
| expected | The expected value of the test value. |
|
nodiscardnoexcept |
Provides the licence of the library.
|
nodiscardnoexcept |
Provides the semantic version with the metadata of the library.
|
nodiscard |
Creates a matcher that will negate the result of another matcher.
| MatcherType | The type of the matcher to be negated. |
| matcher | The matcher whose comparison result should be negated. |
|
nodiscard |
Creates a matcher that will expect that a value is not equal to the matcher's expected value.
| ValueType | This is the type the match object will compare against. |
| expected | The expected value of the test value. |
| ::QTextStream & qt_mocks::operator<< | ( | ::QTextStream & | stream, |
| const long double | value ) |
| ::QTextStream & qt_mocks::operator<< | ( | ::QTextStream & | stream, |
| const std::map< KeyType, ElementType > & | container ) |
| ::QTextStream & qt_mocks::operator<< | ( | ::QTextStream & | stream, |
| const std::pair< FirstValueType, SecondValueType > & | p ) |
| ::QTextStream & qt_mocks::operator<< | ( | ::QTextStream & | stream, |
| const std::set< ElementType > & | container ) |
| ::QTextStream & qt_mocks::operator<< | ( | ::QTextStream & | stream, |
| const std::vector< ElementType > & | container ) |
| std::enable_if_t< ! internal::HasStreamInsertion< MissingStreamInsertionType >::value, ::QTextStream & > qt_mocks::operator<< | ( | const internal::OstreamRef | output, |
| const MissingStreamInsertionType & | object ) |
| ErrorRaiser< ExceptionType > qt_mocks::raise | ( | ExceptionArguments &&... | arguments | ) |
Creates a means to specify exactly what error exception should a mocked function throw.
| ExceptionType | The type of the exception to raise. |
| ExceptionArguments | The types of the parameters for the exception being raised. |
| arguments | Any arguments to supply to the exception being raised. |
|
nodiscard |
Creates a matcher that checks if a size value equals the expected value.
| expected | The expected size to compare against. |
|
nodiscard |
Creates a matcher that checks if a size value is greater than the expected value.
| expected | The expected size to compare against. |
|
nodiscard |
Creates a matcher that checks if a size value is less than the expected value.
| expected | The expected size to compare against. |
|
nodiscardnoexcept |
Provides the URL of the library.
|
nodiscardnoexcept |
Provides the semantic version without the metadata of the library.