pub struct TestHarness<M: Model> { /* private fields */ }Expand description
Test harness for running models in headless mode
Implementations§
Source§impl<M: Model> TestHarness<M>
impl<M: Model> TestHarness<M>
Sourcepub fn send_event(self, event: Event<M::Message>) -> Self
pub fn send_event(self, event: Event<M::Message>) -> Self
Add an event to be processed
Sourcepub fn send_events(self, events: Vec<Event<M::Message>>) -> Self
pub fn send_events(self, events: Vec<Event<M::Message>>) -> Self
Add multiple events
Auto Trait Implementations§
impl<M> Freeze for TestHarness<M>where
M: Freeze,
impl<M> RefUnwindSafe for TestHarness<M>
impl<M> Send for TestHarness<M>where
M: Send,
impl<M> Sync for TestHarness<M>
impl<M> Unpin for TestHarness<M>
impl<M> UnsafeUnpin for TestHarness<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for TestHarness<M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter