Skip to content

PropertyRunner[T: T]

[Source]

Actor executing a Property1 implementation in a way that allows garbage collection between single property executions, because it uses recursive behaviours for looping.

actor tag PropertyRunner[T: T]

Constructors

create

[Source]

new tag create(
  p1: Property1[T] iso,
  params: PropertyParams val,
  notify: PropertyResultNotify val,
  logger: PropertyLogger val,
  env: Env val)
: PropertyRunner[T] tag^

Parameters

Returns


Public Behaviours

complete_run

[Source]

complete a property run

this behaviour is called from the PropertyHelper or from _finished.

be complete_run(
  round: USize val,
  success: Bool val)

Parameters


run

[Source]

be run(
  round: USize val = 0)

Parameters


complete_shrink

[Source]

be complete_shrink(
  failed_repr: String val,
  last_repr: String val,
  shrink_round: USize val,
  success: Bool val)

Parameters


do_shrink

[Source]

be do_shrink(
  failed_repr: String val,
  shrink_round: USize val = 0)

Parameters


expect_action

[Source]

be expect_action(
  name: String val)

Parameters


complete_action

[Source]

be complete_action(
  name: String val,
  ph: PropertyHelper val)

Parameters


fail_action

[Source]

be fail_action(
  name: String val,
  ph: PropertyHelper val)

Parameters


dispose_when_done

[Source]

be dispose_when_done(
  disposable: DisposableActor tag)

Parameters


dispose

[Source]

be dispose()

log

[Source]

be log(
  msg: String val,
  verbose: Bool val = false)

Parameters


Public Functions

complete

[Source]

complete the Property execution successfully

fun ref complete()
: None val

Returns


fail

[Source]

complete the Property execution while signalling failure to the notify

fun ref fail(
  repr: String val,
  rounds: USize val = 0,
  err: Bool val = false)
: None val

Parameters

Returns