(output: &Output, what: &str)
| 159 | } |
| 160 | |
| 161 | fn assert_success(output: &Output, what: &str) { |
| 162 | if !output.status.success() { |
| 163 | panic!( |
| 164 | "{what} failed with {}\nstdout:\n{}\nstderr:\n{}", |
| 165 | output.status, |
| 166 | String::from_utf8_lossy(&output.stdout), |
| 167 | String::from_utf8_lossy(&output.stderr), |
| 168 | ); |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | fn output_text(output: &Output) -> String { |
| 173 | format!( |
no test coverage detected