Skip to content
Myr

common.rs

This file

Path

tests/common.rs

12 lines · 333 bytes · Rust

Last changed by

landed by oscabrielc516152

History of this file

Take it

1use std::process::Command;23pub fn hyperfine_raw_command() -> Command {4    let mut cmd = Command::new(assert_cmd::cargo::cargo_bin!("hyperfine"));5    cmd.current_dir("tests/");6    cmd.env_remove("CLICOLOR_FORCE");7    cmd8}910pub fn hyperfine() -> assert_cmd::Command {11    assert_cmd::Command::from_std(hyperfine_raw_command())12}