Expand description
Deterministic test doubles: a virtual clock and a single-threaded runtime
that runs the cache’s detached work to quiescence on demand (feature test-util).
The cache’s detached work and timers go through Runtime, so a
single-threaded pool can run every task to quiescence after each command
(the causally-ready-v1 settlement of the formal replay) and deliver timers
only when a test advances the clock.
Structs§
- Absent
- The test-only absent value of confirmed-mismatch warnings.
- Step
Runtime - The test runtime handle: collects tasks for the pool and registers timers on the virtual clock.
- Test
Executor - The controlled executor of one test: a single-threaded pool plus the clock and runtime handle every cache instance under test shares.
- Virtual
Clock - Virtual wall, elapsed and scheduler clocks. Scheduler time is what timers are registered against; it moves only when a history delivers timers, so a silent shift never fires a deliberately held timer.
Constants§
- ABSENT_
MARKER - The name
Absentserializes as a unit struct. - WALL_
EPOCH_ MS - Epoch of every controlled history: 2026-09-08T12:00:00.000Z.
Functions§
- grid_
clock - The production
SystemClockbuilt over aVirtualClock.