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

Function wrap_with_exec_harness

src/executor/tests.rs:341–350  ·  view source on GitHub ↗
(
        walltime_args: &exec_harness::walltime::WalltimeExecutionArgs,
        command: &[String],
    )

Source from the content-addressed store, hash-verified

339 }
340
341 fn wrap_with_exec_harness(
342 walltime_args: &exec_harness::walltime::WalltimeExecutionArgs,
343 command: &[String],
344 ) -> String {
345 shell_words::join(
346 std::iter::once(crate::executor::orchestrator::EXEC_HARNESS_COMMAND)
347 .chain(walltime_args.to_cli_args().iter().map(|s| s.as_str()))
348 .chain(command.iter().map(|s| s.as_str())),
349 )
350 }
351
352 // Ensure that the walltime executor works with the exec-harness
353 #[apply(exec_harness_test_cases)]

Callers 1

test_exec_harnessFunction · 0.85

Calls 2

to_cli_argsMethod · 0.80
as_strMethod · 0.80

Tested by

no test coverage detected