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