Struct branchless::testing::GitRunOptions [−][src]
pub struct GitRunOptions { pub time: isize, pub expected_exit_code: i32, pub input: Option<String>, }
Expand description
Options for Git::run_with_options
.
Fields
time: isize
The timestamp of the command. Mostly useful for git commit
. This should
be a number like 0, 1, 2, 3…
expected_exit_code: i32
The exit code that Git
should return.
input: Option<String>
The input to write to the child process’s stdin.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GitRunOptions
impl Send for GitRunOptions
impl Sync for GitRunOptions
impl Unpin for GitRunOptions
impl UnwindSafe for GitRunOptions