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

Function test_wrap_with_builder

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

Source from the content-addressed store, hash-verified

192
193 #[test]
194 fn test_wrap_with_builder() {
195 let mut wrapper = CommandBuilder::new("sudo");
196 wrapper.arg("-n");
197
198 let mut builder = CommandBuilder::new("ls");
199 builder.arg("-la").wrap_with(wrapper);
200
201 assert_eq!(builder.as_command_line(), "sudo -n ls -la");
202 }
203
204 #[test]
205 fn test_wrap_with_preserves_env() {

Callers

nothing calls this directly

Calls 2

argMethod · 0.80
wrap_withMethod · 0.80

Tested by

no test coverage detected