Skip to main content

Crate grommet_testkit

Crate grommet_testkit 

Source
Expand description

Testing tools for schedulers and processors built on grommet.

The runtime can be proven correct on its own, but your processor is where the interesting failures live: a lost acknowledgement, a retry that applies twice, a cache that outlives the value it caches. This crate provides the machinery to find those, generic over your fault labels and your workload.

Nothing here is a marker trait that grants correctness by being implemented. Every check runs your code and reports what it observed.

Re-exports§

pub use conformance::CampaignReport;
pub use conformance::CaseOutcome;
pub use conformance::SweepReport;
pub use conformance::SweepSpec;
pub use determinism::Deterministic;
pub use fault::FaultPlan;
pub use fault::FaultPoint;

Modules§

conformance
Checks you can run against your own processor and configuration.
determinism
Declaring, and then actually checking, that a processor is reproducible.
fault
Deterministic fault injection for the adapters a processor depends on.

Structs§

InlineOffload
Runs the closure inline on the calling shard.
ManualClock
A clock that only moves when a test moves it. Clones share one timeline, so a test can hold one handle while the runtime holds another.