Lumiera
0.pre.03
»edit your freedom«
|
Verify correct behaviour in each case, including (self)assignment, empty check, invalid dereferentiation.
Definition at line 97 of file item-wrapper-test.cpp.
Private Member Functions | |
virtual void | run (Arg) |
void | verifyFunctionRefResult () |
void | verifyFunctionResult () |
void | verifySaneInstanceHandling () |
void | verifySaneMoveHandling () |
void | verifyWrappedRef () |
template<typename X > | |
void | verifyWrapper (X val, X otherVal) |
Static Private Member Functions | |
static auto | produceResult () |
|
inlineprivate |
Definition at line 202 of file item-wrapper-test.cpp.
|
inlineprivate |
Definition at line 220 of file item-wrapper-test.cpp.
|
inlineprivate |
Definition at line 276 of file item-wrapper-test.cpp.
References lib::rani().
|
inlineprivate |
As a simple test, we bind a static helper function to produce a random value and remember the result returned last.
Definition at line 306 of file item-wrapper-test.cpp.
References VERIFY_ERROR.
|
inlineprivate |
Here we use a test function, which picks a member of an vector and returns a reference to it. Thus the cached "result" can be used to access and change the values within the original vector. In a real world usage scenario, such a function could be an (expensive) data structure access.
Definition at line 338 of file item-wrapper-test.cpp.