Skip to main content

Module cassette

Module cassette 

Source
Expand description

Golden-fixture record and replay for streams.

A StreamCassette captures a deterministic trace of a stream – its metadata, the ordered envelopes it produced, derived timing, accumulated diagnostics, and the final stats – so that the same trace can be replayed as a fresh StreamValue or persisted as a golden fixture for tests. The kernel supplies the protocol types (Expr, Symbol, Error) used to serialize a cassette; this module supplies the concrete streaming-fabric behavior that records, redacts, validates, and round-trips those traces.

Structs§

StreamCassette
A recorded, replayable trace of a single stream.
StreamCassetteTiming
Derived timing summary for a recorded cassette.
StreamGoldenFixtureReport
Outcome of validating a cassette against the golden-fixture rules.

Constants§

STREAM_CASSETTE_EXTENSION
File extension (without the leading dot) for a persisted golden fixture.
STREAM_CASSETTE_FIXTURE_ROOT
Repository-relative root directory under which golden stream fixtures live.

Functions§

stream_cassette_format_symbol
Returns the format symbol stamped into every serialized cassette.
stream_cassette_golden_extension
Returns the file extension (without leading dot) for golden fixtures.
stream_cassette_golden_root
Returns the repository-relative root for golden stream fixtures.