Encapsulates a value to be generated by a mocked function. More...
#include <Expectation.hpp>
Public Member Functions | |
| ValueGenerator (std::function< ReturnType()> generator) | |
| Full initialisation constructor that initialises the functor that generates a value for a mocked function. | |
| ReturnType | operator() () const |
Encapsulates a value to be generated by a mocked function.
| ReturnType | The type of the value to be generated. |
|
explicit |
Full initialisation constructor that initialises the functor that generates a value for a mocked function.
| generator | The functor that creates the desired return value upon each invocation. |
| ReturnType qt_mocks::ValueGenerator< ReturnType >::operator() | ( | ) | const |
Invokes the value generator and returns a generated value.