|
BDE 4.39.x Production Release
|
#include <bsls_fuzztest.h>
This class provides a guard that will install and uninstall four handlers, one for assertion failure, one for review failure, one for BSLS_PRECONDITIONS_BEGIN, and one for BSLS_PRECONDITIONS_END, within its protected scope.
See bsls_fuzztest
Public Member Functions | |
| FuzzTestHandlerGuard () | |
| ~FuzzTestHandlerGuard () | |
| Assert::ViolationHandler | getOriginalAssertionHandler () |
| Review::ViolationHandler | getOriginalReviewHandler () |
Static Public Member Functions | |
| static FuzzTestHandlerGuard * | instance () |
|
inline |
Create a guard object, installing FuzzTestPreconditionTracker::handleAssertViolation, FuzzTestPreconditionTracker::handleReviewViolation, and the BEGIN/END handler.
FuzzTestPreconditionTracker::handleAssertViolation or the current review handler is FuzzTestPreconditionTracker::handleAssertViolation.
|
inline |
Restore the failure handler that was in place when this object was created, reset the precondition BEGIN/END handlers to no-op, and destroy this guard.
FuzzTestPreconditionTracker::handleAssertViolation and the current review handler is FuzzTestPreconditionTracker::handleAssertViolation.
|
inline |
Return the original assertion handler.
|
inline |
Return the original review handler.
|
inlinestatic |
Return the current fuzz test handler guard.