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

Function trait_example

tests/cargo.rs:45–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43#[should_panic = "`CARGO_BIN_EXE_assert_cmd` is unset
44help: available binary names are \"bin_fixture\""]
45fn trait_example() {
46 let mut cmd = Command::cargo_bin(pkg_name!()).unwrap();
47 let output = cmd.unwrap();
48 println!("{output:?}");
49}
50
51#[test]
52#[should_panic = "`CARGO_BIN_EXE_assert_cmd` is unset

Callers

nothing calls this directly

Calls 2

cargo_binFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected