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

Function test_wrap_with_args

src/executor/helpers/command.rs:152–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150
151 #[test]
152 fn test_wrap_with_args() {
153 let mut builder = CommandBuilder::new("ls");
154 builder.arg("-la").wrap("sudo", ["-n"]);
155 assert_eq!(builder.as_command_line(), "sudo -n ls -la");
156 }
157
158 #[test]
159 fn test_wrap_without_args() {

Callers

nothing calls this directly

Calls 2

wrapMethod · 0.80
argMethod · 0.80

Tested by

no test coverage detected