8#ifndef INCLUDED_BSLS_FUZZTEST
9#define INCLUDED_BSLS_FUZZTEST
283#include <bsls_assert.h>
291#if defined(BDE_BUILD_TARGET_EXC)
292#define BSLS_FUZZTEST_EVALUATE_IMP(X) do { \
294 BloombergLP::bsls::FuzzTestPreconditionTracker::initStaticState( \
298 catch (BloombergLP::bsls::FuzzTestPreconditionException& ftpe) { \
299 BloombergLP::bsls::FuzzTestPreconditionTracker::handleException( \
304#define BSLS_FUZZTEST_EVALUATE_RAW_IMP(X) do { \
306 BloombergLP::bsls::FuzzTestPreconditionTracker::initStaticState( \
310 catch (BloombergLP::bsls::FuzzTestPreconditionException& ftpe) { \
315#define BSLS_FUZZTEST_EVALUATE_IMP(X) do { \
318#define BSLS_FUZZTEST_EVALUATE_RAW_IMP(X) do { \
323#ifdef BDE_ACTIVATE_FUZZ_TESTING
325#define BSLS_FUZZTEST_EVALUATE(X) BSLS_FUZZTEST_EVALUATE_IMP(X)
327#define BSLS_FUZZTEST_EVALUATE_RAW(X) BSLS_FUZZTEST_EVALUATE_RAW_IMP(X)
330#define BSLS_FUZZTEST_EVALUATE(X) do { \
334#define BSLS_FUZZTEST_EVALUATE_RAW(X) do { \
353 static const char *s_file_p;
356 s_isInFirstPreconditionBlock;
409 s_originalAssertionHandler;
463 return s_originalAssertionHandler;
Definition bsls_assert.h:1929
static Assert::ViolationHandler violationHandler()
static void setViolationHandler(Assert::ViolationHandler function)
void(* ViolationHandler)(const AssertViolation &)
Definition bsls_assert.h:2008
Definition bsls_fuzztest.h:404
FuzzTestHandlerGuard()
Definition bsls_fuzztest.h:437
~FuzzTestHandlerGuard()
Definition bsls_fuzztest.h:453
static Assert::ViolationHandler getOriginalAssertionHandler()
Return the original assertion handler.
Definition bsls_fuzztest.h:461
Definition bsls_fuzztestpreconditionexception.h:118
static void installHandlers(PreconditionHandlerType beginHandler, PreconditionHandlerType endHandler)
static void noOpHandler()
Do nothing.
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bdlt_iso8601util.h:691
Definition bsls_fuzztest.h:349
static void handleException(const FuzzTestPreconditionException &exception)
static void handlePreconditionViolation(const AssertViolation &violation)
static void initStaticState(const char *fileName)
static void handlePreconditionsBegin()
Increment the assertion block depth level counter.
static void handlePreconditionsEnd()