Struct diem_proptest_helpers::ValueGenerator [−][src]
pub struct ValueGenerator { /* fields omitted */ }Expand description
Context for generating single values out of strategies.
Proptest is designed to be built around “value trees”, which represent a spectrum from complex values to simpler ones. But in some contexts, like benchmarking or generating corpuses, one just wants a single value. This is a convenience struct for that.
Implementations
Creates a new value generator with provided RNG
Creates a new value generator with a deterministic RNG.
This generator has a hardcoded seed, so its results are predictable across test runs. However, a new proptest version may change the seed.
Trait Implementations
Returns the “default value” for a type. Read more