(root: &Path, args: &[&str])
| 688 | use super::*; |
| 689 | |
| 690 | fn git_ok(root: &Path, args: &[&str]) { |
| 691 | let output = Command::new("git") |
| 692 | .arg("-C") |
| 693 | .arg(root) |
| 694 | .args(args) |
| 695 | .output() |
| 696 | .expect("run Git"); |
| 697 | assert!( |
| 698 | output.status.success(), |
| 699 | "git {args:?} failed: {}", |
| 700 | String::from_utf8_lossy(&output.stderr) |
| 701 | ); |
| 702 | } |
| 703 | |
| 704 | fn initialized_repository() -> tempfile::TempDir { |
| 705 | let root = tempfile::tempdir().expect("tempdir"); |
no test coverage detected