mirror of
https://github.com/sharkdp/hyperfine.git
synced 2024-11-25 19:19:31 +03:00
14 lines
320 B
Rust
14 lines
320 B
Rust
use std::process::Command;
|
|
|
|
use assert_cmd::cargo::CommandCargoExt;
|
|
|
|
pub fn hyperfine_raw_command() -> Command {
|
|
let mut cmd = Command::cargo_bin("hyperfine").unwrap();
|
|
cmd.current_dir("tests/");
|
|
cmd
|
|
}
|
|
|
|
pub fn hyperfine() -> assert_cmd::Command {
|
|
assert_cmd::Command::from_std(hyperfine_raw_command())
|
|
}
|