Guard that installs and restores fuzz‐test assertion and precondition handlers.

Synopsis

Declared in <bsls_fuzztest.h>

class FuzzTestHandlerGuard;

Description

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.

Member Functions

Name

Description

FuzzTestHandlerGuard [constructor]

Create a guard that installs the fuzz‐test assertion and precondition handlers.

~FuzzTestHandlerGuard [destructor]

Destroy this guard and restore the previous assertion and precondition handlers.

getOriginalAssertionHandler

Return the original assertion handler.

getOriginalReviewHandler

Return the original review handler.

Static Member Functions

Name

Description

instance

Return the current fuzz test handler guard.

Created with MrDocs