(repo: &Repository, repo_path: &Path, name: &str, content: &str)
| 16 | use tempfile::TempDir; |
| 17 | |
| 18 | fn add_file(repo: &Repository, repo_path: &Path, name: &str, content: &str) { |
| 19 | fs::write(repo_path.join(name), content).expect("write file"); |
| 20 | repo.add(name, Default::default()).expect("add file"); |
| 21 | } |
| 22 | |
| 23 | fn write_only(repo_path: &Path, name: &str, content: &str) { |
| 24 | fs::write(repo_path.join(name), content).expect("write file"); |
no test coverage detected