Aller au contenu
Bienvenue sur la nouvelle documentation de CppUtils !

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.

ParamètreDescription
newSeedSeed value.

Retourne : Reference to this builder.

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

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

ParamètreDescription
functionInvocable accepting a DeterministicRandomEngine&.