macro_rules! statestore_integration_tests {
    ($($name:ident)*) => { ... };
}
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, StoreResult, StateStore};

   async fn get_store() -> StoreResult<impl StateStore> {
       Ok(MyStore::new())
   }

   statestore_integration_tests! { integration }
}