Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/assert-rs/assert_cmd
/ success_example
Function
success_example
tests/assert.rs:45–50 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
43
44
#[test]
45
fn success_example() {
46
Command::cargo_bin(
"bin_fixture"
)
47
.unwrap()
48
.assert()
49
.success();
50
}
51
52
#[test]
53
fn failure_example() {
Callers
nothing calls this directly
Calls
4
cargo_bin
Function · 0.85
success
Method · 0.80
assert
Method · 0.45
unwrap
Method · 0.45
Tested by
no test coverage detected