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>,
pub tools: Option<PathBuf>,
}Fields§
§program: StringThe 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).
tools: Option<PathBuf>The folder the tool is recorded in while it runs (its process group; its process tree on Windows), so the next operation can end it if the process that started it is killed first (default: not recorded). An operation’s tools are recorded in the run’s state folder.