Hegel 0.18.2
Property-based testing for C++
Loading...
Searching...
No Matches
hegel::generators::RecursiveParams Struct Reference

Parameters for recursive() generator. More...

#include <combinators.h>

Public Attributes

uint64_t max_depth = 32
uint64_t max_leaves = 100

Detailed Description

Parameters for recursive() generator.

Member Data Documentation

◆ max_depth

uint64_t hegel::generators::RecursiveParams::max_depth = 32

Branches nest at most this deep. Sub-values at this depth are always leaves, so 0 generates only leaves.

◆ max_leaves

uint64_t hegel::generators::RecursiveParams::max_leaves = 100

The most leaves one generated value can have. Each value steers toward a size drawn from this range. An attempt that draws more leaves is discarded and tried again, and the test case is rejected when several attempts in a row do not fit.


The documentation for this struct was generated from the following file: