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

Function cargo_binary_with_empty_env

tests/cargo.rs:15–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14#[test]
15fn cargo_binary_with_empty_env() {
16 let mut cmd = Command::cargo_bin("bin_fixture").unwrap();
17 cmd.env_clear().env("stdout", "42");
18 cmd.assert().success().stdout("42\n");
19}
20
21#[test]
22fn mod_example() {

Callers

nothing calls this directly

Calls 7

cargo_binFunction · 0.85
envMethod · 0.80
env_clearMethod · 0.80
stdoutMethod · 0.80
successMethod · 0.80
unwrapMethod · 0.45
assertMethod · 0.45

Tested by

no test coverage detected