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

Function test_multiple_wraps

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

wrapMethod · 0.80
argMethod · 0.80

Tested by

no test coverage detected