MCPcopy Index your code
hub / github.com/assert-rs/assert_cmd / env_clear

Method env_clear

src/cmd.rs:390–393  ·  view source on GitHub ↗

Clears the entire environment map for the child process. # Examples Basic usage: ```no_run use assert_cmd::Command; Command::new("ls") .env_clear() .unwrap_err(); ```

(&mut self)

Source from the content-addressed store, hash-verified

388 /// .unwrap_err();
389 /// ```
390 pub fn env_clear(&mut self) -> &mut Self {
391 self.cmd.env_clear();
392 self
393 }
394
395 /// Sets the working directory for the child process.
396 ///

Callers 1

Calls

no outgoing calls

Tested by 1