Skip to main content

event_store_model_conformance

Macro event_store_model_conformance 

macro_rules! event_store_model_conformance {
    (mod_name = $mod_name:ident, emit = $emit:path, fixture = $fixture:expr) => { ... };
    (mod_name = $mod_name:ident, fixture = $fixture:expr) => { ... };
    ($fixture:expr) => { ... };
}
Available on crate feature proptest only.
Expand description

Generates the model-based conformance suite for an event store adapter.

Takes the same fixture expression event_store_conformance! does, and emits the same shape of test — one per rule of the model family, through an emitter the caller may replace.

It exists behind the testkit’s proptest feature and does not exist on wasm32-unknown-unknown. Gate the invocation accordingly.

§Examples

use happenstance_testkit::fixtures::MemoryFixture;

happenstance_testkit::event_store_model_conformance!(MemoryFixture::new());