macro_rules! media_store_integration_tests {
() => { ... };
}
Available on crate feature
testing
only.Expand description
Macro building to allow your MediaStore
implementation to run
the entire tests suite locally.
You need to provide an async fn get_media_store() -> media::store::Result<Store>
that provides a fresh media store
that implements MediaStoreInner
on the same level you invoke the
macro.
ยงUsage Example:
#[cfg(test)]
mod tests {
use super::{MediaStoreResult, MyStore};
async fn get_media_store() -> MediaStoreResult<MyStore> {
Ok(MyStore::new())
}
media_store_integration_tests!();
}