Skip to main content

Call

Type Alias Call 

Source
pub type Call = ProcessSpec;
Available on crate feature fake only.
Expand description

One call a test’s code made: the process it asked for, as it asked.

Aliased Type§

pub struct Call {
    pub program: String,
    pub args: Vec<String>,
    pub cwd: Option<PathBuf>,
    pub env: Vec<(String, String)>,
    pub stdin: Option<PathBuf>,
}

Fields§

§program: String

The program: a bare tool name, found on PATH.

§args: Vec<String>

Its arguments, passed as they are (no shell ever reads them).

§cwd: Option<PathBuf>

Its working folder (default: the runner’s).

§env: Vec<(String, String)>

Variables added to the runner’s environment.

§stdin: Option<PathBuf>

A file piped into its standard input (default: none).