Trait modelator::step_runner::StepRunner
source · [−]pub trait StepRunner<Step: DeserializeOwned + Debug + Clone> {
fn initial_step(&mut self, step: Step) -> Result<(), String>;
fn next_step(&mut self, step: Step) -> Result<(), String>;
fn run(&mut self, trace: JsonTrace) -> Result<(), TestError> { ... }
}
Expand description
A StepRunner
drives a SUT by executing a series of steps
(see crate::ModelatorRuntime::run_tla_steps
).
Required methods
fn initial_step(&mut self, step: Step) -> Result<(), String>
fn initial_step(&mut self, step: Step) -> Result<(), String>
Executes the first step against the runner.