PropertyRunner[T: T]¶
Actor executing a Property1 implementation in a way that allows garbage collection between single property executions, because it uses recursive behaviours for looping.
Constructors¶
create¶
new tag create(
p1: Property1[T] iso,
params: PropertyParams val,
notify: PropertyResultNotify val,
logger: PropertyLogger val,
env: Env val)
: PropertyRunner[T] tag^
Parameters¶
- p1: Property1[T] iso
- params: PropertyParams val
- notify: PropertyResultNotify val
- logger: PropertyLogger val
- env: Env val
Returns¶
- PropertyRunner[T] tag^
Public Behaviours¶
complete_run¶
Complete a property run.
This behaviour is called from the PropertyHelper or from the actor itself.
Parameters¶
- round: (_Shrink val | _Run val)
- success: Bool val
run¶
complete_shrink¶
be complete_shrink(
failed_repr: String val,
last_repr: String val,
shrink_round: (_Shrink val | _Run val),
success: Bool val)
Parameters¶
- failed_repr: String val
- last_repr: String val
- shrink_round: (_Shrink val | _Run val)
- success: Bool val
do_shrink¶
Parameters¶
- failed_repr: String val
expect_action¶
Parameters¶
- name: String val
- round: (_Shrink val | _Run val)
complete_action¶
Parameters¶
- name: String val
- round: (_Shrink val | _Run val)
- ph: PropertyHelper val
fail_action¶
Parameters¶
- name: String val
- round: (_Shrink val | _Run val)
- ph: PropertyHelper val
dispose_when_done¶
Let us not have older rounds interfere with newer ones, thus dispose directly.
Parameters¶
- disposable: DisposableActor tag
- round: (_Shrink val | _Run val)
dispose¶
log¶
Parameters¶
Public Functions¶
complete¶
Complete the Property execution successfully.
Returns¶
- None val
fail¶
Complete the Property execution
while signalling failure to the PropertyResultNotify
.
Parameters¶
Returns¶
- None val