Trait EventCacheStoreMediaIntegrationTests

Source
pub trait EventCacheStoreMediaIntegrationTests {
    // Required methods
    async fn test_store_media_retention_policy(&self);
    async fn test_media_max_file_size(&self);
    async fn test_media_max_cache_size(&self);
    async fn test_media_expiry(&self);
    async fn test_media_ignore_max_size(&self);
    async fn test_media_ignore_expiry(&self);
    async fn test_store_last_media_cleanup_time(&self);
}
Available on crate feature testing only.
Expand description

EventCacheStoreMedia integration tests.

This trait is not meant to be used directly, but will be used with the event_cache_store_media_integration_tests! macro.

Required Methods§

Source

async fn test_store_media_retention_policy(&self)

Test media retention policy storage.

Source

async fn test_media_max_file_size(&self)

Test media content’s retention policy max file size.

Source

async fn test_media_max_cache_size(&self)

Test media content’s retention policy max cache size.

Source

async fn test_media_expiry(&self)

Test media content’s retention policy expiry.

Source

async fn test_media_ignore_max_size(&self)

Test IgnoreMediaRetentionPolicy with the media content’s retention policy max sizes.

Source

async fn test_media_ignore_expiry(&self)

Test IgnoreMediaRetentionPolicy with the media content’s retention policy expiry.

Source

async fn test_store_last_media_cleanup_time(&self)

Test last media cleanup time storage.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§