linera_views::store

Trait TestKeyValueStore

Source
pub trait TestKeyValueStore: KeyValueStore {
    // Required method
    fn new_test_config(    ) -> impl Future<Output = Result<Self::Config, Self::Error>> + Send;

    // Provided method
    fn new_test_store(    ) -> impl Future<Output = Result<Self, Self::Error>> + Send { ... }
}
Expand description

The functions needed for testing purposes

Required Methods§

Source

fn new_test_config() -> impl Future<Output = Result<Self::Config, Self::Error>> + Send

Obtains a test config

Provided Methods§

Source

fn new_test_store() -> impl Future<Output = Result<Self, Self::Error>> + Send

Creates a store for testing purposes

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§