Expand description
Client testing utilities.
Re-exports§
pub use substrate_test_runtime as runtime;
Modules§
- Substrate Client and associated logic.
- Client extension for tests.
- A prelude to import in tests.
- Client backend that is backed by a database.
- A crate that provides means of executing/dispatching calls into the runtime.
- Common utilities for building and using consensus engines in substrate.
- tests that should hold for all implementations of certain traits. to test implementations without duplication.
Structs§
- A producer of execution extensions for offchain calls.
- Parameters of test-client builder with test-runtime.
- Implement Longest Chain Select implementation where ‘longest’ is defined as the highest number of blocks
- A running RPC service that can perform in-memory RPC queries.
- An error for when the RPC call fails.
- The output of an RPC transaction.
- Struct containing data needed for a storage.
- Child trie storage data.
- An abstraction over Wasm code executor. Supports selecting execution backend and manages runtime cache.
Enums§
- Block data origin.
- Block pruning settings.
- Set of test accounts.
- Set of test accounts.
- Specification of different methods of executing the runtime Wasm code.
Traits§
- Extension trait for test block builder.
- An extension trait for
BlockchainEvents
. - Extension trait for a test client around block importing.
- Extension trait for a test client.
- A
TestClientBuilder
with default backend and executor. - A genesis storage initialization trait.
- Something that generates, stores and provides access to secret keys.
- An extension trait for
RpcHandlers
. - A
test-runtime
extensions toTestClientBuilder
.
Functions§
- Creates new client instance used for tests.
- new_native_or_wasm_executorDeprecatedCreate a new native executor.
Type Aliases§
- Test client database backend.
- Known bad block hashes.
- Test client type with
WasmExecutor
and generic Backend. - Test client executor.
- Expected hashes of blocks at given heights.
- A shared pointer to a keystore implementation.
- A test client with default backend.
- A
TestClient
withtest-runtime
builder.