Supertester.ConcurrentHarness.Scenario (Supertester v0.6.0)

Copy Markdown View Source

Struct describing a prepared concurrent scenario.

Exposed primarily for introspection of generated scenarios—most callers should rely on Supertester.ConcurrentHarness helpers instead of constructing this struct manually.

Summary

Types

t()

@type t() :: %Supertester.ConcurrentHarness.Scenario{
  call_timeout_ms: pos_integer(),
  cast_sync_message: term(),
  chaos: Supertester.ConcurrentHarness.chaos_fun() | nil,
  cleanup: (pid(), map() -> any()) | nil,
  default_operation: :call | :cast,
  invariant: (pid(), map() -> any()),
  mailbox: keyword() | nil,
  metadata: map(),
  performance_expectations: keyword(),
  setup: (-> {:ok, pid()} | {:ok, pid(), map()} | {:error, term()}),
  strict_cast_sync?: boolean(),
  threads: [[Supertester.ConcurrentHarness.operation()]],
  timeout_ms: pos_integer()
}