pub enum Event {
Init(Box<dyn Any>),
Action(Box<dyn Any>),
Expect(String),
Check(Box<dyn Any>),
Equal(Box<dyn Any>),
}
Expand description
A set of events to describe tests based on abstract states and actions.
Variants
Init(Box<dyn Any>)
Initialize the concrete system state from the abstract one.
Action(Box<dyn Any>)
Process the abstract action, modifying the system state.
Expect(String)
Expect the provided outcome of the last action.
Check(Box<dyn Any>)
Check the assertion about the abstract system state.
Equal(Box<dyn Any>)
Expect exactly the provided abstract system state.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Event
impl !UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more