#![allow(clippy::unwrap_used, reason = "tests")]
#![allow(clippy::expect_used, reason = "tests")]
#![allow(clippy::missing_panics_doc, reason = "tests")]
use mnesis::Version;
use mnesis_inmemory::{InMemorySnapshotStore, InMemoryStore};
mnesis_store_testing::conformance! {
factory: || async { (InMemoryStore::new(), ()) },
}
mnesis_store_testing::conformance_atomic_append! {
factory: || async { (InMemoryStore::new(), ()) },
}
mnesis_store_testing::conformance_snapshot! {
factory: || async { (InMemorySnapshotStore::<Vec<u8>, Version>::new(), ()) },
positions: (Version::new(5).unwrap(), Version::new(9).unwrap()),
extremes: (Version::new(1).unwrap(), Version::new(u64::MAX).unwrap()),
}
mnesis_store_testing::conformance_lifecycle! {
open: || async { (InMemoryStore::new(), ()) },
reopen: |store: InMemoryStore, (): ()| async move { (store, ()) },
}