pub struct ScriptedProcess { /* private fields */ }Expand description
A process provider whose answers are written down beforehand.
Matched on the whole argv joined by spaces, which is crude and deliberate: a matcher with globs or regexes is a small language, and a test that needs one is usually testing the matcher.
A command with no entry fails rather than succeeding quietly — an unscripted command in a test is a gap in the test, and returning empty success would hide it.
Implementations§
Trait Implementations§
Source§impl Clone for ScriptedProcess
impl Clone for ScriptedProcess
Source§impl Default for ScriptedProcess
impl Default for ScriptedProcess
Source§impl Process for ScriptedProcess
impl Process for ScriptedProcess
fn spawn<'life0, 'async_trait>(
&'life0 self,
spec: ProcessSpec,
_cancel: CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn ProcessHandle>, ExecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Forget for ScriptedProcess
impl Freeze for ScriptedProcess
impl Move for ScriptedProcess
impl RefUnwindSafe for ScriptedProcess
impl Send for ScriptedProcess
impl Sync for ScriptedProcess
impl Unpin for ScriptedProcess
impl UnsafeUnpin for ScriptedProcess
impl UnwindSafe for ScriptedProcess
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