Skip to main content

Test

Type Alias Test 

Source
pub type Test = Impl<TestStorage, TestNetwork, TestSigner, TestWallet>;
Expand description

A fully in-memory Environment used in tests.

Aliased Type§

pub struct Test {
    pub storage: DbStorage<MemoryDatabase, TestClock>,
    pub network: NodeProvider<DbStorage<MemoryDatabase, TestClock>>,
    pub signer: InMemorySigner,
    pub wallet: Memory,
}

Fields§

§storage: DbStorage<MemoryDatabase, TestClock>

The persistent storage backend.

§network: NodeProvider<DbStorage<MemoryDatabase, TestClock>>

The provider of validator nodes.

§signer: InMemorySigner

The signer used to sign on behalf of chain owners.

§wallet: Memory

The wallet tracking the chains followed by the client.