pub struct MockShellOutput {
pub stdout: String,
pub stderr: String,
pub exit_code: i32,
}Expand description
Canned result of a mocked shell step.
§Examples
use ironflow_engine::testing::MockShellOutput;
let ok = MockShellOutput::ok("built 3 crates");
assert_eq!(ok.exit_code, 0);
let ko = MockShellOutput::failed(2, "linker not found");
assert_eq!(ko.stderr, "linker not found");Fields§
§stdout: StringStandard output the step reports.
stderr: StringStandard error the step reports.
exit_code: i32Process exit code. Anything but 0 fails the step.
Implementations§
Trait Implementations§
Source§impl Clone for MockShellOutput
impl Clone for MockShellOutput
Source§impl Debug for MockShellOutput
impl Debug for MockShellOutput
Source§impl Default for MockShellOutput
impl Default for MockShellOutput
impl Eq for MockShellOutput
Source§impl PartialEq for MockShellOutput
impl PartialEq for MockShellOutput
impl StructuralPartialEq for MockShellOutput
Auto Trait Implementations§
impl Freeze for MockShellOutput
impl RefUnwindSafe for MockShellOutput
impl Send for MockShellOutput
impl Sync for MockShellOutput
impl Unpin for MockShellOutput
impl UnsafeUnpin for MockShellOutput
impl UnwindSafe for MockShellOutput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.