PropertyParams¶
Parameters to control Property Execution.
- seed: the seed for the source of Randomness
- num_samples: the number of samples to produce from the property generator
- max_shrink_reductions: the maximum number of shrink reductions to accept
- max_generator_retries: the maximum number of retries to do if a generator fails to generate a sample
- timeout: the timeout for the PonyTest runner, in nanoseconds
- async: if true the property is expected to finish asynchronously by calling
PropertyHelper.complete(...)
Implements¶
- Stringable box
Constructors¶
create¶
new val create(
num_samples': USize val = 100,
seed': U64 val = Time.millis(),
max_shrink_reductions': USize val = 100,
max_generator_retries': USize val = 5,
timeout': U64 val = 60_000_000_000,
async': Bool val = false)
: PropertyParams val^
Parameters¶
- num_samples': USize val = 100
- seed': U64 val = Time.millis()
- max_shrink_reductions': USize val = 100
- max_generator_retries': USize val = 5
- timeout': U64 val = 60_000_000_000
- async': Bool val = false
Returns¶
- PropertyParams val^
Public fields¶
let seed: U64 val¶
let num_samples: USize val¶
let max_shrink_reductions: USize val¶
let max_generator_retries: USize val¶
let timeout: U64 val¶
let async: Bool val¶
Public Functions¶
string¶
Returns¶
- String iso^