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

Function get_executors_from_modes

src/cli/setup.rs:56–65  ·  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

54///
55/// An empty list of modes means "every executor".
56fn get_executors_from_modes(modes: &[RunnerMode]) -> Vec<Box<dyn Executor>> {
57 if modes.is_empty() {
58 get_all_executors()
59 } else {
60 modes
61 .iter()
62 .map(|mode| get_executor_from_mode(mode, None))
63 .collect()
64 }
65}
66
67async fn setup(modes: &[RunnerMode], setup_cache_dir: Option<&Path>) -> Result<()> {
68 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