pub struct EngineTarget { /* private fields */ }Expand description
Runs test cases on an Engine (one compiled graph, shared by every test).
Set a graphrt_core::node::Clock with timers on the engine (e.g.
TokioClock) for Limits::max_duration_ms to act as a per-test timeout.
Implementations§
Source§impl EngineTarget
impl EngineTarget
pub fn new(engine: Engine) -> Self
Sourcepub fn with_env(self, env: IndexMap<String, Value>) -> Self
pub fn with_env(self, env: IndexMap<String, Value>) -> Self
Values for the workflow’s declared env.* variables.
Sourcepub fn with_path(self, path: impl Into<String>) -> Self
pub fn with_path(self, path: impl Into<String>) -> Self
The workflow file path shown in the report.
Trait Implementations§
Source§impl Clone for EngineTarget
impl Clone for EngineTarget
Source§impl Debug for EngineTarget
impl Debug for EngineTarget
Source§impl Target for EngineTarget
impl Target for EngineTarget
Source§fn run<'a>(
&'a self,
case: &'a TestCase,
) -> BoxFuture<'a, Result<RunCapture, EvalError>>
fn run<'a>( &'a self, case: &'a TestCase, ) -> BoxFuture<'a, Result<RunCapture, EvalError>>
Run
case once. Return Err only when the run could not be attempted;
a failed run is a capture with RunStatus::Failed.Source§fn workflow(&self) -> WorkflowInfo
fn workflow(&self) -> WorkflowInfo
Describes the workflow for the report.
Auto Trait Implementations§
impl !RefUnwindSafe for EngineTarget
impl !UnwindSafe for EngineTarget
impl Forget for EngineTarget
impl Freeze for EngineTarget
impl Move for EngineTarget
impl Send for EngineTarget
impl Sync for EngineTarget
impl Unpin for EngineTarget
impl UnsafeUnpin for EngineTarget
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