Skip to content
Welcome to the new CppUtils documentation!

Builder for configuring and registering a randomized fuzz test.

TestSuite& parentSuite;

Reference to the enclosing test suite registering the test.

std::string testName;

Identifier of the test case.

std::size_t testIterations;

Number of randomized iterations to execute.

std::uint64_t testSeed {Math::DeterministicRandomEngine::defaultSeed};

Deterministic pseudo-random number generator initial seed.

auto FuzzTestBuilder::seed(std::uint64_t newSeed) -> FuzzTestBuilder&;

Sets the deterministic initial pseudo-random number generator seed for fuzz reproducibility.

ParameterDescription
newSeedSeed value.

Returns: Reference to this builder.

auto FuzzTestBuilder::operator=(auto&& function) -> void;

Registers the fuzz test callback executed for the configured iteration count.

ParameterDescription
functionInvocable accepting a DeterministicRandomEngine&.