Metakit / @doeixd/metakit/temporal

WalkResult

const · packages/metakit/src/temporalWalk.ts:41

const WalkResult: Data.TaggedEnum.GenericConstructor<WalkResultDefinition>

Its type

type WalkResult<Name = string> = Data.TaggedEnum<{
  Held: {
    readonly seed: number
    readonly runs: number
  }
  Broken: {
    readonly seed: number
    readonly interleaving: ReadonlyArray<Name>
    readonly minimal: ReadonlyArray<Name>
    readonly reason: string
  }
}>

What a walk found. Broken carries the seed whose order broke the property (walk(scenario, { seed, runs: 1 }) runs it again), that order up to the failing step, and the fewest of its steps that still break it.