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

Function test_multiple_wraps

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

Source from the content-addressed store, hash-verified

164
165 #[test]
166 fn test_multiple_wraps() {
167 let mut builder = CommandBuilder::new("valgrind");
168 builder
169 .arg("my-program")
170 .wrap("setarch", ["x86_64", "--addr-no-randomize"])
171 .wrap("sudo", ["-n"]);
172 assert_eq!(
173 builder.as_command_line(),
174 "sudo -n setarch x86_64 --addr-no-randomize valgrind my-program"
175 );
176 }
177
178 #[test]
179 fn test_wrap_with_spaces() {

Callers

nothing calls this directly

Calls 2

wrapMethod · 0.80
argMethod · 0.80

Tested by

no test coverage detected