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

Function test_wrap_with_builder

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

Source from the content-addressed store, hash-verified

196
197 #[test]
198 fn test_wrap_with_builder() {
199 let mut wrapper = CommandBuilder::new("sudo");
200 wrapper.arg("-n");
201
202 let mut builder = CommandBuilder::new("ls");
203 builder.arg("-la").wrap_with(wrapper);
204
205 assert_eq!(builder.as_command_line(), "sudo -n ls -la");
206 }
207
208 #[test]
209 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