(&self, program: &str, args: &[&str])
| 33 | } |
| 34 | |
| 35 | fn ok(&self, program: &str, args: &[&str]) -> String { |
| 36 | let output = self.command(program, args); |
| 37 | let text = format!( |
| 38 | "{}{}", |
| 39 | String::from_utf8_lossy(&output.stdout), |
| 40 | String::from_utf8_lossy(&output.stderr) |
| 41 | ); |
| 42 | assert!(output.status.success(), "{args:?}: {text}"); |
| 43 | assert!( |
| 44 | !text.contains("could not persist its interpretation closure"), |
| 45 | "{text}" |
| 46 | ); |
| 47 | String::from_utf8(output.stdout).unwrap() |
| 48 | } |
| 49 | |
| 50 | fn atomic(&self, args: &[&str]) -> String { |
| 51 | self.ok(env!("CARGO_BIN_EXE_atomic"), args) |
no test coverage detected