/ thirdparty / hyperfine / tests / common.rs
common.rs
 1  use std::process::Command;
 2  
 3  use assert_cmd::cargo::CommandCargoExt;
 4  
 5  pub fn hyperfine_raw_command() -> Command {
 6      let mut cmd = Command::cargo_bin("hyperfine").unwrap();
 7      cmd.current_dir("tests/");
 8      cmd
 9  }
10  
11  pub fn hyperfine() -> assert_cmd::Command {
12      assert_cmd::Command::from_std(hyperfine_raw_command())
13  }