pub struct MockExecutor { /* private fields */ }Expand description
Mock executor that returns pre-configured or example-based outputs.
Implementations§
Source§impl MockExecutor
impl MockExecutor
pub fn new() -> Self
Sourcepub fn with_output(self, stage_id: &StageId, output: Value) -> Self
pub fn with_output(self, stage_id: &StageId, output: Value) -> Self
Register a fixed output for a specific stage.
Sourcepub fn from_store(store: &(impl StageStore + ?Sized)) -> Self
pub fn from_store(store: &(impl StageStore + ?Sized)) -> Self
Pre-populate from a store: use each stage’s first example output.
Trait Implementations§
Source§impl Debug for MockExecutor
impl Debug for MockExecutor
Source§impl Default for MockExecutor
impl Default for MockExecutor
Source§fn default() -> MockExecutor
fn default() -> MockExecutor
Returns the “default value” for a type. Read more
Source§impl StageExecutor for MockExecutor
impl StageExecutor for MockExecutor
Auto Trait Implementations§
impl Freeze for MockExecutor
impl RefUnwindSafe for MockExecutor
impl Send for MockExecutor
impl Sync for MockExecutor
impl Unpin for MockExecutor
impl UnsafeUnpin for MockExecutor
impl UnwindSafe for MockExecutor
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