referrerpolicy=no-referrer-when-downgrade
emulated_integration_tests_common::impls

Trait TestExt

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§

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

§

impl TestExt for ()

§

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§

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

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

impl<N: Network> TestExt for PeopleRococo<N>

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

impl<N: Network> TestExt for Rococo<N>

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