use mempill_core::testing::conformance::{
run_disposition_scope_conformance, run_granularity_conformance, run_history_conformance,
run_persistence_conformance, run_valid_at_conformance,
};
use mempill_sqlite::{connection::open_in_memory, store::SqlitePersistenceStore};
#[test]
fn sqlite_passes_conformance() {
let conn = open_in_memory().expect("in-memory SQLite connection must open");
let store = SqlitePersistenceStore::new(conn);
run_persistence_conformance(&store);
}
#[test]
fn sqlite_passes_history_conformance() {
let conn = open_in_memory().expect("in-memory SQLite connection must open");
let store = SqlitePersistenceStore::new(conn);
run_history_conformance(&store);
}
#[test]
fn sqlite_passes_disposition_scope_conformance() {
let conn = open_in_memory().expect("in-memory SQLite connection must open");
let store = SqlitePersistenceStore::new(conn);
run_disposition_scope_conformance(&store);
}
#[test]
fn sqlite_passes_valid_at_conformance() {
let conn = open_in_memory().expect("in-memory SQLite connection must open");
let store = SqlitePersistenceStore::new(conn);
run_valid_at_conformance(&store);
}
#[test]
fn sqlite_passes_granularity_conformance() {
let conn = open_in_memory().expect("in-memory SQLite connection must open");
let store = SqlitePersistenceStore::new(conn);
run_granularity_conformance(&store);
}