Trait TestVerb

Source
pub trait TestVerb<H>: 'static {
    // Required methods
    fn run(&self, harness: &mut H, node: &KdlNode) -> Result<(), TestErrorCase>;
    fn clone_box(&self) -> Box<dyn TestVerb<H>>;
}
Expand description

A verb is anything that ‘does’ things in a TestCase

Required Methods§

Source

fn run(&self, harness: &mut H, node: &KdlNode) -> Result<(), TestErrorCase>

Run the verb, and do its thing

Source

fn clone_box(&self) -> Box<dyn TestVerb<H>>

Clone the verb

Trait Implementations§

Source§

impl<H: 'static> Clone for Box<dyn TestVerb<H>>

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§

Source§

impl<H: 'static> TestVerb<H> for FunctionVerb<H>