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 Freeze for MockExecutionProvider
impl RefUnwindSafe for MockExecutionProvider
impl Send for MockExecutionProvider
impl Sync for MockExecutionProvider
impl Unpin for MockExecutionProvider
impl UnwindSafe for MockExecutionProvider
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more