Flezha.SDK.TaskletTestHarness.Outcome (flezha_sdk v0.1.0)

Copy Markdown View Source

What one invocation produced: result (:ok, or the {:error, reason} run/3 or on_timer/3 answered or raised), the values it emitted, the changes it recorded and the timer operations it made, in call order.

Summary

Types

t()

@type t() :: %Flezha.SDK.TaskletTestHarness.Outcome{
  changes: [term()],
  outputs: [term()],
  result: :ok | {:error, term()},
  timers: [
    %{
      kind: Flezha.SDK.TimerFiring.kind(),
      scheduled_at: non_neg_integer(),
      register: boolean()
    }
  ]
}