Struct dev_scope::shared::prelude::MockExecutionProvider
source · pub struct MockExecutionProvider { /* private fields */ }
Implementations§
source§impl MockExecutionProvider
impl MockExecutionProvider
sourcepub fn checkpoint(&mut self)
pub fn checkpoint(&mut self)
Validate that all current expectations for all methods have been satisfied, and discard them.
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new mock object with no expectations.
This method will not be generated if the real struct
already has a new
method. However, it will be
generated if the struct implements a trait with a new
method. The trait’s new
method can still be called
like <MockX as TraitY>::new
source§impl MockExecutionProvider
impl MockExecutionProvider
sourcepub fn expect_run_command(&mut self) -> &mut Expectation
pub fn expect_run_command(&mut self) -> &mut Expectation
Create an Expectation
for mocking the run_command
method
Trait Implementations§
source§impl Debug for MockExecutionProvider
impl Debug for MockExecutionProvider
source§impl Default for MockExecutionProvider
impl Default for MockExecutionProvider
source§impl ExecutionProvider for MockExecutionProvider
impl ExecutionProvider for MockExecutionProvider
fn run_command<'a, 'life0, 'async_trait>(
&'life0 self,
opts: CaptureOpts<'a>
) -> Pin<Box<dyn Future<Output = Result<OutputCapture, CaptureError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl RefUnwindSafe for MockExecutionProvider
impl Send for MockExecutionProvider
impl Sync for MockExecutionProvider
impl Unpin for MockExecutionProvider
impl UnwindSafe for MockExecutionProvider
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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