Skip to main content

Crate lenso_test

Crate lenso_test 

Source
Expand description

A small deterministic App harness for testing real native Plugin composition.

TestApp keeps the same immutable Plan and native Adapter path as production, while removing Tokio setup and manual Driver plumbing from Plugin tests.

Structs§

FaultInjector
Test-owned, FIFO fault queues indexed by a stable boundary label.
FaultPointError
Error returned when a caller names an unsafe or unstable scenario boundary.
ScenarioReceipt
A test-owned receipt recorder attached to one TestSimulator.
ScenarioReceiptEvent
One sanitized, deterministic scenario receipt entry.
SimulatorGate
A named checkpoint that a test explicitly releases.
SimulatorResource
A named, cooperative resource owner that a test can freeze independently.
TestApp
A running deterministic App that exposes the real Kernel handle to tests.
TestAppBuilder
Builder for one deterministic native Test App.
TestEntropy
A reproducible byte stream derived from an explicitly supplied test seed.
TestSimulator
A deterministic test-only execution environment around one Driver.
TestWallClock
An explicit wall-clock projection of one TestSimulator’s virtual time.

Enums§

ScenarioBoundary
A small, target-neutral vocabulary for normal scenario fault boundaries.
ScenarioTerminal
A finite terminal classification for one scenario operation.
ScenarioTransition
A non-sensitive lifecycle transition that a scenario may record.
SimulatorFault
A bounded failure condition that a test may inject at an explicit boundary.