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

Function get_executors_from_modes

src/cli/setup.rs:46–55  ·  view source on GitHub ↗

Resolve the executors to operate on from the requested modes. An empty list of modes means "every executor".

(modes: &[RunnerMode])

Source from the content-addressed store, hash-verified

44///
45/// An empty list of modes means "every executor".
46fn get_executors_from_modes(modes: &[RunnerMode]) -> Vec<Box<dyn Executor>> {
47 if modes.is_empty() {
48 get_all_executors()
49 } else {
50 modes
51 .iter()
52 .map(|mode| get_executor_from_mode(mode, None))
53 .collect()
54 }
55}
56
57async fn setup(modes: &[RunnerMode], setup_cache_dir: Option<&Path>) -> Result<()> {
58 let system_info = SystemInfo::new()?;

Callers 2

setupFunction · 0.85
statusFunction · 0.85

Calls 3

get_all_executorsFunction · 0.85
get_executor_from_modeFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected