[#BloombergLP-bsls-FuzzTestHandlerGuard] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::FuzzTestHandlerGuard :relfileprefix: ../../ :mrdocs: Guard that installs and restores fuzz‐test assertion and precondition handlers. == Synopsis Declared in `<bsls_fuzztest.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsls/FuzzTestHandlerGuard/2constructor.adoc[`FuzzTestHandlerGuard`] [.small]#[constructor]# | Create a guard that installs the fuzz‐test assertion and precondition handlers. | xref:BloombergLP/bsls/FuzzTestHandlerGuard/2destructor.adoc[`~FuzzTestHandlerGuard`] [.small]#[destructor]# | Destroy this guard and restore the previous assertion and precondition handlers. | xref:BloombergLP/bsls/FuzzTestHandlerGuard/getOriginalAssertionHandler.adoc[`getOriginalAssertionHandler`] | Return the original assertion handler. | xref:BloombergLP/bsls/FuzzTestHandlerGuard/getOriginalReviewHandler.adoc[`getOriginalReviewHandler`] | Return the original review handler. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsls/FuzzTestHandlerGuard/instance.adoc[`instance`] | Return the current fuzz test handler guard. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#