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

Function run

tests/executors.rs:149–162  ·  view source on GitHub ↗

`codspeed run` up to the `--` separator. `--allow-empty`: plain scripts produce no benchmark results.

(mode: Mode)

Source from the content-addressed store, hash-verified

147/// `codspeed run` up to the `--` separator. `--allow-empty`: plain scripts
148/// produce no benchmark results.
149fn run(mode: Mode) -> Command {
150 let mut cmd = codspeed();
151 cmd.args([
152 "run",
153 "--skip-upload",
154 "--allow-empty",
155 "--mode",
156 mode.name(),
157 ]);
158 if let Mode::Walltime { profiler: true } = mode {
159 cmd.arg("--enable-profiler");
160 }
161 cmd
162}
163
164fn env_check_script(name: &str, expected: &str) -> String {
165 let expected: String = expected.quoted(Bash);

Calls 4

codspeedFunction · 0.85
argsMethod · 0.80
argMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected