Skip to main content

conformance

Macro conformance 

Source
macro_rules! conformance {
    (factory: $factory:expr $(,)?) => { ... };
    (factory: $factory:expr, skip_unless: $skip:expr $(,)?) => { ... };
}
Expand description

Run the full core conformance matrix (sequence + boundary + linearizability) against a store factory.

The factory returns (store, guard): the guard keeps any backing resource (a temp dir, a pool) alive for the check’s duration — use () when the store owns everything.

mnesis_store_testing::conformance! {
    factory: || async { (InMemoryStore::new(), ()) },
}

Requires tokio (with macros, rt-multi-thread) as a dev-dependency of the invoking crate.