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

Function setup

src/cli/setup.rs:57–67  ·  view source on GitHub ↗
(modes: &[RunnerMode], setup_cache_dir: Option<&Path>)

Source from the content-addressed store, hash-verified

55}
56
57async fn setup(modes: &[RunnerMode], setup_cache_dir: Option<&Path>) -> Result<()> {
58 let system_info = SystemInfo::new()?;
59 let executors = get_executors_from_modes(modes);
60 start_group!("Setting up the environment");
61 for executor in executors {
62 setup_executor(executor.as_ref(), &system_info, setup_cache_dir).await?;
63 }
64 info!("Environment setup completed");
65 end_group!();
66 Ok(())
67}
68
69/// Set up a single executor based on its support level on the current system.
70///

Callers 1

runFunction · 0.70

Calls 2

get_executors_from_modesFunction · 0.85
setup_executorFunction · 0.85

Tested by

no test coverage detected