Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/assert-rs/assert_cmd
/ timeout_example
Function
timeout_example
tests/examples.rs:19–28 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
17
18
#[test]
19
fn timeout_example() {
20
use assert_cmd::Command;
21
22
let assert = Command::cargo_bin(
"bin_fixture"
)
23
.unwrap()
24
.timeout(std::time::Duration::from_secs(1))
25
.env(
"sleep"
,
"100"
)
26
.assert();
27
assert.failure();
28
}
Callers
nothing calls this directly
Calls
6
cargo_bin
Function · 0.85
env
Method · 0.80
timeout
Method · 0.80
failure
Method · 0.80
assert
Method · 0.45
unwrap
Method · 0.45
Tested by
no test coverage detected