StatefulPropertyRunner[S: S, M: M, Cmd: Stringable val]¶
Executes a StatefulProperty using recursive behaviours with interleaved step execution.
Each sample: draw step count, create fresh state via factory methods, execute steps with interleaved draws from Randomness, check invariants, run final_check. On failure, the choice sequence is handed to _Shrinker unchanged for replay-based shrinking.
Implements¶
- _IPropertyRunner tag
Constructors¶
create¶
new tag create(
prop: StatefulProperty[S, M, Cmd] iso,
params: PropertyParams val,
notify: PropertyResultNotify val,
logger: PropertyLogger val,
env: Env val)
: StatefulPropertyRunner[S, M, Cmd] tag^
Parameters¶
- prop: StatefulProperty[S, M, Cmd] iso
- params: PropertyParams val
- notify: PropertyResultNotify val
- logger: PropertyLogger val
- env: Env val
Returns¶
- StatefulPropertyRunner[S, M, Cmd] tag^
Public Behaviours¶
run¶
Execute the property test.
complete_run¶
Parameters¶
- round: _Round
- success: Bool val
do_shrink¶
Begin shrinking the failing choice sequence.
Parameters¶
- failed_repr: String val
expect_action¶
Parameters¶
- name: String val
- round: _Round
complete_action¶
Parameters¶
- name: String val
- round: _Round
- ph: PropertyHelper val
fail_action¶
Parameters¶
- name: String val
- round: _Round
- ph: PropertyHelper val
classify¶
Parameters¶
- label: String val
- round: _Round
tabulate¶
Parameters¶
cover¶
Parameters¶
dispose_when_done¶
Parameters¶
- disposable: DisposableActor tag
- round: _Round
dispose¶
log¶
Parameters¶
Public Functions¶
complete¶
Complete the property execution successfully.
Returns¶
- None val
fail¶
Complete the property execution while signalling failure.
Parameters¶
Returns¶
- None val