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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Calls the given closure and return the result. Read more

Calls the given closure on self.

Calls the given closure on self.

Calls the given closure if condition == true.