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 ()

Implementors§