Metakit / @doeixd/metakit/pairs
walkPair
function · packages/metakit/src/pairs.ts:239
function walkPair<State, Transitions extends Readonly<Record<string, unknown>>>(
machine: Machine<State, Transitions>,
over: readonly [NoInfer<ArmOf<Transitions>>, NoInfer<ArmOf<Transitions>>],
options?: Temporal.WalkOptions,
): Temporal.WalkResult<keyof Transitions & string>Run a and b from generated states in both orders and compare what each
order leaves: the state, the records emitted (as a set) and which steps were
refused. Run n is made from seed first + n, so a Broken seed with
runs: 1 runs the same case again. interleaving is the order that
differed from a then b, and minimal the same: a pair has no shorter one.
Throws for an arm that is not one of machine.transitions.