referrerpolicy=no-referrer-when-downgrade
pub trait TestExt {
    // Required methods
    fn build_new_ext(storage: Storage) -> TestExternalities<Blake2Hasher>;
    fn new_ext() -> TestExternalities<Blake2Hasher>;
    fn move_ext_out(id: &'static str);
    fn move_ext_in(id: &'static str);
    fn reset_ext();
    fn execute_with<R>(execute: impl FnOnce() -> R) -> R;
    fn ext_wrapper<R>(func: impl FnOnce() -> R) -> R;
}

Required Methods§

source

fn build_new_ext(storage: Storage) -> TestExternalities<Blake2Hasher>

source

fn new_ext() -> TestExternalities<Blake2Hasher>

source

fn move_ext_out(id: &'static str)

source

fn move_ext_in(id: &'static str)

source

fn reset_ext()

source

fn execute_with<R>(execute: impl FnOnce() -> R) -> R

source

fn ext_wrapper<R>(func: impl FnOnce() -> R) -> R

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TestExt for ()

source§

impl<N> TestExt for CollectivesWestend<N>
where N: Network,

source§

impl<N> TestExt for CoretimeWestend<N>
where N: Network,

source§

impl<N> TestExt for PeopleWestend<N>
where N: Network,

§

impl<N> TestExt for AssetHubWestend<N>
where N: Network,

§

fn build_new_ext(storage: Storage) -> TestExternalities<Blake2Hasher>

§

fn new_ext() -> TestExternalities<Blake2Hasher>

§

fn move_ext_out(id: &'static str)

§

fn move_ext_in(id: &'static str)

§

fn reset_ext()

§

fn execute_with<R>(execute: impl FnOnce() -> R) -> R

§

fn ext_wrapper<R>(func: impl FnOnce() -> R) -> R

§

impl<N> TestExt for BridgeHubWestend<N>
where N: Network,

§

fn build_new_ext(storage: Storage) -> TestExternalities<Blake2Hasher>

§

fn new_ext() -> TestExternalities<Blake2Hasher>

§

fn move_ext_out(id: &'static str)

§

fn move_ext_in(id: &'static str)

§

fn reset_ext()

§

fn execute_with<R>(execute: impl FnOnce() -> R) -> R

§

fn ext_wrapper<R>(func: impl FnOnce() -> R) -> R

§

impl<N> TestExt for PenpalA<N>
where N: Network,

§

fn build_new_ext(storage: Storage) -> TestExternalities<Blake2Hasher>

§

fn new_ext() -> TestExternalities<Blake2Hasher>

§

fn move_ext_out(id: &'static str)

§

fn move_ext_in(id: &'static str)

§

fn reset_ext()

§

fn execute_with<R>(execute: impl FnOnce() -> R) -> R

§

fn ext_wrapper<R>(func: impl FnOnce() -> R) -> R

§

impl<N> TestExt for PenpalB<N>
where N: Network,

§

fn build_new_ext(storage: Storage) -> TestExternalities<Blake2Hasher>

§

fn new_ext() -> TestExternalities<Blake2Hasher>

§

fn move_ext_out(id: &'static str)

§

fn move_ext_in(id: &'static str)

§

fn reset_ext()

§

fn execute_with<R>(execute: impl FnOnce() -> R) -> R

§

fn ext_wrapper<R>(func: impl FnOnce() -> R) -> R

§

impl<N> TestExt for Westend<N>
where N: Network,

§

fn build_new_ext(storage: Storage) -> TestExternalities<Blake2Hasher>

§

fn new_ext() -> TestExternalities<Blake2Hasher>

§

fn move_ext_out(id: &'static str)

§

fn move_ext_in(id: &'static str)

§

fn reset_ext()

§

fn execute_with<R>(execute: impl FnOnce() -> R) -> R

§

fn ext_wrapper<R>(func: impl FnOnce() -> R) -> R

Implementors§