Lumiera
0.pre.03
»edit your freedom«
|
Verify correct behaviour in each case, including (self)assignment, empty check, invalid dereferentiation.
Definition at line 108 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) |
|
inlineprivate |
Definition at line 211 of file item-wrapper-test.cpp.
|
inlineprivate |
Definition at line 229 of file item-wrapper-test.cpp.
|
inlineprivate |
Definition at line 285 of file item-wrapper-test.cpp.
|
inlineprivate |
As a simple test, we bind the rand()
standard lib function and remember the last returned random value.
Definition at line 313 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 345 of file item-wrapper-test.cpp.