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§
Sourcefn execute_sync(self) -> Option<M>
fn execute_sync(self) -> Option<M>
Execute the command synchronously in tests
Sourcefn execute_with_harness(self, harness: &AsyncTestHarness) -> Vec<M>
fn execute_with_harness(self, harness: &AsyncTestHarness) -> Vec<M>
Execute with a test harness