Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/assert-rs/assert_cmd
/ failure_example
Function
failure_example
tests/assert.rs:53–59 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
51
52
#[test]
53
fn failure_example() {
54
Command::cargo_bin(
"bin_fixture"
)
55
.unwrap()
56
.env(
"exit"
,
"1"
)
57
.assert()
58
.failure();
59
}
60
61
#[test]
62
fn code_example() {
Callers
nothing calls this directly
Calls
5
cargo_bin
Function · 0.85
failure
Method · 0.80
env
Method · 0.80
assert
Method · 0.45
unwrap
Method · 0.45
Tested by
no test coverage detected