MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / codspeed_cmd

Function codspeed_cmd

tests/working_directory.rs:18–23  ·  view source on GitHub ↗
(cwd: &Path)

Source from the content-addressed store, hash-verified

16 static SERIAL: Mutex<()> = Mutex::new(());
17
18 fn codspeed_cmd(cwd: &Path) -> Command {
19 let mut cmd = Command::cargo_bin("codspeed").unwrap();
20 cmd.current_dir(cwd);
21 cmd.env("CODSPEED_TOKEN", "test-token");
22 cmd
23 }
24
25 /// Create a bash script that validates CWD matches the expected absolute path.
26 fn write_cwd_check_script(path: &Path, expected_dir: &Path) {

Calls 2

current_dirMethod · 0.80
envMethod · 0.80