pub trait EventCacheStoreIntegrationTests {
Show 26 methods
// Required methods
async fn test_handle_updates_and_rebuild_linked_chunk(&self);
async fn test_linked_chunk_exists_before_referenced(&self);
async fn test_load_last_chunk(&self);
async fn test_load_last_chunk_with_a_cycle(&self);
async fn test_load_previous_chunk(&self);
async fn test_linked_chunk_incremental_loading(&self);
async fn test_linked_chunk_remove_chunk(&self);
async fn test_linked_chunk_replace_item(&self);
async fn test_linked_chunk_remove_item(&self);
async fn test_linked_chunk_detach_last_items(&self);
async fn test_linked_chunk_start_end_reattach_items(&self);
async fn test_linked_chunk_clear(&self);
async fn test_linked_chunk_clear_and_reinsert(&self);
async fn test_rebuild_empty_linked_chunk(&self);
async fn test_linked_chunk_multiple_rooms(&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_filter_duplicate_events_no_events(&self);
async fn test_find_event(&self);
async fn test_find_event_relations(&self);
async fn test_get_room_events(&self);
async fn test_get_room_events_filtered(&self);
async fn test_save_event(&self);
async fn test_thread_vs_room_linked_chunk(&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_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_exists_before_referenced(&self)
async fn test_linked_chunk_exists_before_referenced(&self)
Test that the next and previous fields only reference chunks that already exist in the store.
Sourceasync fn test_load_last_chunk(&self)
async fn test_load_last_chunk(&self)
Test loading the last chunk in a linked chunk from the store.
Sourceasync fn test_load_last_chunk_with_a_cycle(&self)
async fn test_load_last_chunk_with_a_cycle(&self)
Test that cycles are detected when loading the last chunk in a linked chunk from the store.
Sourceasync fn test_load_previous_chunk(&self)
async fn test_load_previous_chunk(&self)
Test loading the previous chunk in a linked chunk 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_linked_chunk_remove_chunk(&self)
async fn test_linked_chunk_remove_chunk(&self)
Test removing a chunk.
Sourceasync fn test_linked_chunk_replace_item(&self)
async fn test_linked_chunk_replace_item(&self)
Test replacing an item in a linked chunk.
Sourceasync fn test_linked_chunk_remove_item(&self)
async fn test_linked_chunk_remove_item(&self)
Test remove an item from a linked chunk.
Sourceasync fn test_linked_chunk_detach_last_items(&self)
async fn test_linked_chunk_detach_last_items(&self)
Test detaching last items from a linked chunk.
Sourceasync fn test_linked_chunk_start_end_reattach_items(&self)
async fn test_linked_chunk_start_end_reattach_items(&self)
Test that start reattach and end reattach items does nothing.
Sourceasync fn test_linked_chunk_clear(&self)
async fn test_linked_chunk_clear(&self)
Test clearing a linked chunk.
Sourceasync fn test_linked_chunk_clear_and_reinsert(&self)
async fn test_linked_chunk_clear_and_reinsert(&self)
Test clearing a linked chunk and re-inserting a past event.
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_linked_chunk_multiple_rooms(&self)
async fn test_linked_chunk_multiple_rooms(&self)
Test that linked chunks are only accessible through their enclosing room.
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_filter_duplicate_events_no_events(&self)
async fn test_filter_duplicate_events_no_events(&self)
Test that filtering duplicated events works with an empty filter.
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_get_room_events(&self)
async fn test_get_room_events(&self)
Test that getting all events in a room works as expected.
Sourceasync fn test_get_room_events_filtered(&self)
async fn test_get_room_events_filtered(&self)
Test that getting events in a room of a certain type works as expected.
Sourceasync fn test_save_event(&self)
async fn test_save_event(&self)
Test that saving an event works as expected.
Sourceasync fn test_thread_vs_room_linked_chunk(&self)
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.