Trait StateStoreIntegrationTests

Source
pub trait StateStoreIntegrationTests {
Show 25 methods // Required methods async fn populate(&self) -> TestResult; async fn test_topic_redaction(&self) -> TestResult; async fn test_populate_store(&self) -> TestResult; async fn test_member_saving(&self) -> TestResult; async fn test_filter_saving(&self) -> TestResult; async fn test_user_avatar_url_saving(&self) -> TestResult; async fn test_sync_token_saving(&self) -> TestResult; async fn test_utd_hook_manager_data_saving(&self) -> TestResult; async fn test_one_time_key_already_uploaded_data_saving(&self) -> TestResult; async fn test_stripped_member_saving(&self) -> TestResult; async fn test_power_level_saving(&self) -> TestResult; async fn test_receipts_saving(&self) -> TestResult; async fn test_custom_storage(&self) -> TestResult; async fn test_stripped_non_stripped(&self) -> TestResult; async fn test_room_removal(&self) -> TestResult; async fn test_profile_removal(&self) -> TestResult; async fn test_presence_saving(&self) -> TestResult; async fn test_display_names_saving(&self) -> TestResult; async fn test_send_queue(&self) -> TestResult; async fn test_send_queue_priority(&self) -> TestResult; async fn test_send_queue_dependents(&self) -> TestResult; async fn test_update_send_queue_dependent(&self) -> TestResult; async fn test_server_info_saving(&self) -> TestResult; async fn test_get_room_infos(&self) -> TestResult; async fn test_thread_subscriptions(&self) -> TestResult;
}
Available on crate feature testing only.
Expand description

StateStore integration tests.

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

Required Methods§

Source

async fn populate(&self) -> TestResult

Populate the given StateStore.

Source

async fn test_topic_redaction(&self) -> TestResult

Test room topic redaction.

Source

async fn test_populate_store(&self) -> TestResult

Test populating the store.

Source

async fn test_member_saving(&self) -> TestResult

Test room member saving.

Source

async fn test_filter_saving(&self) -> TestResult

Test filter saving.

Source

async fn test_user_avatar_url_saving(&self) -> TestResult

Test saving a user avatar URL.

Source

async fn test_sync_token_saving(&self) -> TestResult

Test sync token saving.

Source

async fn test_utd_hook_manager_data_saving(&self) -> TestResult

Test UtdHookManagerData saving.

Source

async fn test_one_time_key_already_uploaded_data_saving(&self) -> TestResult

Test the saving of the OneTimeKeyAlreadyUploaded key/value data type.

Source

async fn test_stripped_member_saving(&self) -> TestResult

Test stripped room member saving.

Source

async fn test_power_level_saving(&self) -> TestResult

Test room power levels saving.

Source

async fn test_receipts_saving(&self) -> TestResult

Test user receipts saving.

Source

async fn test_custom_storage(&self) -> TestResult

Test custom storage.

Source

async fn test_stripped_non_stripped(&self) -> TestResult

Test stripped and non-stripped room member saving.

Source

async fn test_room_removal(&self) -> TestResult

Test room removal.

Source

async fn test_profile_removal(&self) -> TestResult

Test profile removal.

Source

async fn test_presence_saving(&self) -> TestResult

Test presence saving.

Source

async fn test_display_names_saving(&self) -> TestResult

Test display names saving.

Source

async fn test_send_queue(&self) -> TestResult

Test operations with the send queue.

Source

async fn test_send_queue_priority(&self) -> TestResult

Test priority of operations with the send queue.

Source

async fn test_send_queue_dependents(&self) -> TestResult

Test operations related to send queue dependents.

Source

async fn test_update_send_queue_dependent(&self) -> TestResult

Test an update to a send queue dependent request.

Source

async fn test_server_info_saving(&self) -> TestResult

Test saving/restoring server info.

Source

async fn test_get_room_infos(&self) -> TestResult

Test fetching room infos based on RoomLoadSettings.

Source

async fn test_thread_subscriptions(&self) -> TestResult

Test loading thread subscriptions.

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§