(repo: &Repository, path: &str, content: &str)
| 21 | } |
| 22 | |
| 23 | fn write(repo: &Repository, path: &str, content: &str) { |
| 24 | let file = repo.root().join(path); |
| 25 | fs::create_dir_all(file.parent().unwrap()).unwrap(); |
| 26 | fs::write(file, content).unwrap(); |
| 27 | } |
| 28 | |
| 29 | fn recorded(repo: &Repository) -> BTreeMap<String, Vec<u8>> { |
| 30 | let mut files = BTreeMap::new(); |
no test coverage detected