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

Function cargo_bin_example_1

tests/cargo.rs:54–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52#[should_panic = "`CARGO_BIN_EXE_assert_cmd` is unset
53help: available binary names are \"bin_fixture\""]
54fn cargo_bin_example_1() {
55 let mut cmd = Command::cargo_bin(pkg_name!()).unwrap();
56 let output = cmd.unwrap();
57 println!("{output:?}");
58}
59
60#[test]
61fn cargo_bin_example_2() {

Callers

nothing calls this directly

Calls 2

cargo_binFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected