pub trait EventCacheStoreIntegrationTests {
// 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);
}
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§
Sourceasync fn test_media_content(&self)
async fn test_media_content(&self)
Test media content storage.
Sourceasync fn test_replace_media_key(&self)
async fn test_replace_media_key(&self)
Test replacing a MXID.
Sourceasync fn test_handle_updates_and_rebuild_linked_chunk(&self)
async fn test_handle_updates_and_rebuild_linked_chunk(&self)
Test handling updates to a linked chunk and reloading these updates from the store.
Sourceasync fn test_linked_chunk_incremental_loading(&self)
async fn test_linked_chunk_incremental_loading(&self)
Test loading a linked chunk incrementally (chunk by chunk) from the store.
Sourceasync fn test_rebuild_empty_linked_chunk(&self)
async fn test_rebuild_empty_linked_chunk(&self)
Test that rebuilding a linked chunk from an empty store doesn’t return anything.
Sourceasync fn test_load_all_chunks_metadata(&self)
async fn test_load_all_chunks_metadata(&self)
Test that loading a linked chunk’s metadata works as intended.
Sourceasync fn test_clear_all_linked_chunks(&self)
async fn test_clear_all_linked_chunks(&self)
Test that clear all the rooms’ linked chunks works.
Sourceasync fn test_remove_room(&self)
async fn test_remove_room(&self)
Test that removing a room from storage empties all associated data.
Sourceasync fn test_filter_duplicated_events(&self)
async fn test_filter_duplicated_events(&self)
Test that filtering duplicated events works as expected.
Sourceasync fn test_find_event(&self)
async fn test_find_event(&self)
Test that an event can be found or not.
Sourceasync fn test_find_event_relations(&self)
async fn test_find_event_relations(&self)
Test that finding event relations works as expected.
Sourceasync fn test_save_event(&self)
async fn test_save_event(&self)
Test that saving an event works as expected.
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.