CmdTestExt

Trait CmdTestExt 

Source
pub trait CmdTestExt<M: Message> {
    // Required methods
    fn execute_sync(self) -> Option<M>;
    fn execute_with_harness(self, harness: &AsyncTestHarness) -> Vec<M>;
}
Expand description

Extension trait for Cmd to make testing easier

Required Methods§

Source

fn execute_sync(self) -> Option<M>

Execute the command synchronously in tests

Source

fn execute_with_harness(self, harness: &AsyncTestHarness) -> Vec<M>

Execute with a test harness

Implementations on Foreign Types§

Source§

impl<M: Message + Clone + Send + 'static> CmdTestExt<M> for Cmd<M>

Implementors§