Files
hyperfine/tests/common.rs
T

12 lines
333 B
Rust
Raw Normal View History

2022-02-06 12:06:27 +01:00
use std::process::Command;
pub fn hyperfine_raw_command() -> Command {
let mut cmd = Command::new(assert_cmd::cargo::cargo_bin!("hyperfine"));
2022-02-06 12:06:27 +01:00
cmd.current_dir("tests/");
cmd.env_remove("CLICOLOR_FORCE");
2022-02-06 12:06:27 +01:00
cmd
}
pub fn hyperfine() -> assert_cmd::Command {
assert_cmd::Command::from_std(hyperfine_raw_command())
}