Trait EventCacheStoreIntegrationTests

Source
pub trait EventCacheStoreIntegrationTests {
Show 13 methods // Required methods async fn test_media_content(&self); async fn test_replace_media_key(&self); async fn test_handle_updates_and_rebuild_linked_chunk(&self); async fn test_linked_chunk_incremental_loading(&self); async fn test_rebuild_empty_linked_chunk(&self); async fn test_load_all_chunks_metadata(&self); async fn test_clear_all_linked_chunks(&self); async fn test_remove_room(&self); async fn test_filter_duplicated_events(&self); async fn test_find_event(&self); async fn test_find_event_relations(&self); async fn test_save_event(&self); async fn test_thread_vs_room_linked_chunk(&self);
}
Available on crate feature testing only.
Expand description

EventCacheStore integration tests.

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

Required Methods§

Source

async fn test_media_content(&self)

Test media content storage.

Source

async fn test_replace_media_key(&self)

Test replacing a MXID.

Source

async fn test_handle_updates_and_rebuild_linked_chunk(&self)

Test handling updates to a linked chunk and reloading these updates from the store.

Source

async fn test_linked_chunk_incremental_loading(&self)

Test loading a linked chunk incrementally (chunk by chunk) from the store.

Source

async fn test_rebuild_empty_linked_chunk(&self)

Test that rebuilding a linked chunk from an empty store doesn’t return anything.

Source

async fn test_load_all_chunks_metadata(&self)

Test that loading a linked chunk’s metadata works as intended.

Source

async fn test_clear_all_linked_chunks(&self)

Test that clear all the rooms’ linked chunks works.

Source

async fn test_remove_room(&self)

Test that removing a room from storage empties all associated data.

Source

async fn test_filter_duplicated_events(&self)

Test that filtering duplicated events works as expected.

Source

async fn test_find_event(&self)

Test that an event can be found or not.

Source

async fn test_find_event_relations(&self)

Test that finding event relations works as expected.

Source

async fn test_save_event(&self)

Test that saving an event works as expected.

Source

async fn test_thread_vs_room_linked_chunk(&self)

Test multiple things related to distinguishing a thread linked chunk from a room linked chunk.

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§