BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bsls_fuzztest_testutil

Detailed Description

Provide utilities for bsls_fuzztest component.

Outline

Purpose

Provide utilities for bsls_fuzztest component.

Description

The bsls_fuzztest_testutil component provides utilities to facilitate testing the bsls_fuzztest component.

Usage

This section illustrates intended use of this component.

Example: Basic Usage of Functions

First, we install an AssertTestHandlerGuard to catch the violation.

Definition bsls_asserttest.h:981

Then, we trigger an AssertViolation by calling triggerAssert inside ASSERT_FAIL and verify that a violation occurs as expected.

static void triggerAssert()
Trigger an AssertViolation by calling BSLS_ASSERT_INVOKE.

Next, we trigger a ReviewViolation by calling triggerReview inside ASSERT_FAIL and verify that a violation occurs as expected.

static void triggerReview()
Trigger a ReviewViolation by calling BSLS_REVIEW_INVOKE.