Trait linera_views::store::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

Object Safety§

This trait is not object safe.

Implementors§