(root: &Path, args: &[&str])
| 73 | } |
| 74 | |
| 75 | fn git(root: &Path, args: &[&str]) -> Output { |
| 76 | Command::new("git") |
| 77 | .args(args) |
| 78 | .current_dir(root) |
| 79 | .env("GIT_AUTHOR_NAME", "Test") |
| 80 | .env("GIT_AUTHOR_EMAIL", "test@example.com") |
| 81 | .env("GIT_COMMITTER_NAME", "Test") |
| 82 | .env("GIT_COMMITTER_EMAIL", "test@example.com") |
| 83 | .output() |
| 84 | .expect("run git") |
| 85 | } |
| 86 | |
| 87 | fn assert_git(root: &Path, args: &[&str], context: &str) { |
| 88 | let out = git(root, args); |
no test coverage detected