macro_rules! statestore_integration_tests {
() => { ... };
}
Available on crate feature
testing
only.Expand description
Macro building to allow your StateStore implementation to run the entire tests suite locally.
You need to provide a async fn get_store() -> StoreResult<impl StateStore>
providing a fresh store on the same level you invoke the macro.
ยงUsage Example:
#[cfg(test)]
mod tests {
use super::{MyStore, StateStore, StoreResult};
async fn get_store() -> StoreResult<impl StateStore> {
Ok(MyStore::new())
}
statestore_integration_tests!();
}