Expand description
Test-only helpers for action implementors.
Provides a ReporterHarness that owns the channels and an
InMemorySink needed to construct a
Reporter in unit and integration tests, so downstream crates can
exercise their actions without dealing with channel plumbing.
Structs§
- Fixed
Clock - A
Clockfrozen at a caller-chosen instant, for asserting that event times come from the injected clock rather than the wall clock. - Reporter
Harness - Owns the channels and sink needed to build a
Reporterfor tests.
Functions§
- begun_
sink - An in-memory sink with
test_headeralready written, ready to record facts. - ceremony_
started - A
CeremonyStartedfact for tests, over a fixed template digest. - fact_
event - Wrap a fact into an
ExecEvent::Factstamped withfixed_test_time, for frontend tests that feed synthetic events into a driver. - fixed_
test_ time - A fixed instant for tests that need a deterministic event time. Arbitrary
but stable, so recorded
atvalues and snapshots stay reproducible. - test_
header - A header for tests: a fixed run id, not a dry run.
- write_
transcript - Write
transcript.jsonlindir:test_header, then each fact at its default level andfixed_test_time. Returns the fingerprint.