macro_rules! write_group_store_conformance {
(mod_name = $mod_name:ident, emit = $emit:path, fixture = $fixture:expr) => { ... };
(mod_name = $mod_name:ident, fixture = $fixture:expr) => { ... };
($fixture:expr) => { ... };
}Expand description
Generates the write-group conformance suite for a store adapter.
Takes an expression that produces an IngestFixture whose store also
implements WriteGroupStore. The
rule list comes from
for_each_write_group_rule!.
ยงExamples
happenstance_sync_testkit::write_group_store_conformance!(
happenstance_sync_testkit::MemoryIngestFixture::new()
);A different harness, and a module name of your own:
happenstance_sync_testkit::write_group_store_conformance!(
mod_name = blocking_write_group_conformance,
emit = happenstance_sync_testkit::emit_write_group_blocking,
fixture = super::MyFixture::new()
);