Skip to main content

Module fake

Module fake 

Source
Expand description

FakeProvider — the deterministic, programmable reference implementation of the SPI (04 §8): an in-memory world model with scripted outcomes and fault injection. It is both the conformance suite’s reference subject and the runner’s E2E test double.

Determinism: timestamps come from a logical millisecond clock, observation/asset ids from counters, and event sequences from a monotonic counter — no wall clock, no randomness.

Structs§

FakeHandle
A cheap, clonable handle into the fake’s world for programming and inspection from tests (fault injection, recorded-state assertions).
FakeProvider
Deterministic, programmable SPI reference implementation (04 §8).
FakeProviderSession
A session over the fake world. See FakeProvider.

Enums§

ScriptedOutcome
One scripted execute behavior (crate::spi::ProviderSession::execute), consumed front-to-back from the script queue.