macro_rules! restore_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 restore conformance suite for a peer adapter.
Takes an expression that produces a RestoreFixture. The rule list comes
from for_each_restore_rule!.
ยงExamples
The default harness, #[tokio::test]:
happenstance_sync_testkit::restore_conformance!(
happenstance_sync_testkit::MemoryRestoreFixture::new()
);A different harness, and a module name of your own:
happenstance_sync_testkit::restore_conformance!(
mod_name = blocking_restore_conformance,
emit = happenstance_sync_testkit::emit_restore_blocking,
fixture = super::MyFixture::new()
);