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

Function test_wrap_with_args

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

wrapMethod · 0.80
argMethod · 0.80

Tested by

no test coverage detected