macro_rules! sync_peer_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 sync conformance suite for a peer adapter.
Takes an expression that produces a SyncFixture. The rule list is not
written here; it comes from
for_each_sync_peer_rule!, which is the
only place it is written at all.
ยงExamples
The default harness, #[tokio::test]:
happenstance_sync_testkit::sync_peer_conformance!(
happenstance_sync_testkit::MemorySyncFixture::new()
);A different harness, and a module name of your own so two mounts can share a file:
happenstance_sync_testkit::sync_peer_conformance!(
mod_name = blocking_sync_conformance,
emit = happenstance_sync_testkit::emit_sync_blocking,
fixture = super::MyFixture::new()
);