macro_rules! statestore_integration_tests {
    (with_media_tests) => { ... };
    () => { ... };
    (@inner) => { ... };
}
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!();
}