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

Function test_shell_command_from_args

src/cli/run/mod.rs:320–323  ·  view source on GitHub ↗
(#[case] args: &[&str], #[case] expected: &str)

Source from the content-addressed store, hash-verified

318 #[case::dollar(&["echo", "$HOME"], "echo '$HOME'")]
319 #[case::quote(&["echo", "it's"], "echo 'it'\\''s'")]
320 fn test_shell_command_from_args(#[case] args: &[&str], #[case] expected: &str) {
321 let args: Vec<String> = args.iter().map(|s| s.to_string()).collect();
322 assert_eq!(shell_command_from_args(&args), expected);
323 }
324}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected