(repo_dir: &std::path::Path, args: &[&str])
| 203 | } |
| 204 | |
| 205 | fn run_git(repo_dir: &std::path::Path, args: &[&str]) { |
| 206 | let output = Command::new("git") |
| 207 | .current_dir(repo_dir) |
| 208 | .args(args) |
| 209 | .output() |
| 210 | .unwrap(); |
| 211 | assert!( |
| 212 | output.status.success(), |
| 213 | "git {:?} failed: {}{}", |
| 214 | args, |
| 215 | String::from_utf8_lossy(&output.stdout), |
| 216 | String::from_utf8_lossy(&output.stderr) |
| 217 | ); |
| 218 | } |
| 219 | |
| 220 | #[test] |
| 221 | fn git_worktree_info_preserves_camel_case_contract() { |
no test coverage detected