Return a random value. More...
Public Member Functions | |
RandomStub (T low, T high) | |
Creates the object. | |
RandomStub (T high) | |
Creates the object. | |
virtual R | typelessInvoke () |
Mock the invocation without passing parameters. | |
virtual mockpp::String | describeTo (mockpp::String &buffer) const |
Appends the description of this object to the buffer. | |
Static Public Member Functions | |
static R | getNumber (T low, T high) |
Creates a random number within a given range. |
Return a random value.
Definition at line 49 of file RandomStub.h.
mockpp::RandomStub< R, T >::RandomStub | ( | T | low, | |
T | high | |||
) | [inline] |
Creates the object.
low | lower bound of random values | |
high | upper bound of random values |
Definition at line 57 of file RandomStub.h.
mockpp::RandomStub< R, T >::RandomStub | ( | T | high | ) | [inline] |
Creates the object.
high | upper bound of random values |
Definition at line 66 of file RandomStub.h.
virtual mockpp::String mockpp::RandomStub< R, T >::describeTo | ( | mockpp::String & | buffer | ) | const [inline, virtual] |
Appends the description of this object to the buffer.
buffer | The buffer that the description is appended to. |
Implements mockpp::TypelessStub< R >.
Definition at line 94 of file RandomStub.h.
static R mockpp::RandomStub< R, T >::getNumber | ( | T | low, | |
T | high | |||
) | [inline, static] |
Creates a random number within a given range.
low | lower bound of random values | |
high | upper bound of random values |
Definition at line 76 of file RandomStub.h.
virtual R mockpp::RandomStub< R, T >::typelessInvoke | ( | ) | [inline, virtual] |
Mock the invocation without passing parameters.
Implements mockpp::TypelessStub< R >.
Definition at line 85 of file RandomStub.h.