protocol/testing/arbitraries
packages/protocol/src/testing/arbitraries
Purpose
Public barrel for schema-derived protocol arbitraries used by tests.Public surface
allRpcMethods
Variable
RpcMap directly.
arbitraryAnyCall
Function
arbitraryCallFor
Function
arbitraryFromSchema
Function
Arbitrary<Schema.Schema.Type<S>> for any Effect Schema. The
derivation is pure: given the same schema + fast-check seed, it yields the
same value tree (AC10 reproducibility). The return type is Effect’s
re-exported FastCheck.Arbitrary — the SAME fast-check module the rest of
the suite samples with (both pinned to fast-check v3, the version Effect’s
Arbitrary.make binds to), so no cross-module cast is needed.
ArbitraryRpcCall
Interface
Files
rpc.tsschema-arbitrary.ts