(root: &Path, args: &[&str])
| 24 | } |
| 25 | |
| 26 | fn git_ok(root: &Path, args: &[&str]) -> Vec<u8> { |
| 27 | let output = git(root, args); |
| 28 | assert!( |
| 29 | output.status.success(), |
| 30 | "git {:?} failed:\nstdout:\n{}\nstderr:\n{}", |
| 31 | args, |
| 32 | String::from_utf8_lossy(&output.stdout), |
| 33 | String::from_utf8_lossy(&output.stderr) |
| 34 | ); |
| 35 | output.stdout |
| 36 | } |
| 37 | |
| 38 | fn git_text(root: &Path, args: &[&str]) -> String { |
| 39 | String::from_utf8(git_ok(root, args)) |
no test coverage detected