()
| 39 | } |
| 40 | |
| 41 | fn fixture() -> (TempDir, Vec<Hash>) { |
| 42 | let dir = TempDir::new().unwrap(); |
| 43 | let repo = Repository::init(dir.path()).unwrap(); |
| 44 | let mut hashes = Vec::new(); |
| 45 | for name in ["a.txt", "b.txt", "c.txt"] { |
| 46 | fs::write(dir.path().join(name), name).unwrap(); |
| 47 | repo.add(name, Default::default()).unwrap(); |
| 48 | hashes.push(record(&repo, name)); |
| 49 | } |
| 50 | (dir, hashes) |
| 51 | } |
| 52 | |
| 53 | fn history(repo: &Repository) -> Vec<Hash> { |
| 54 | repo.log(HistoryOptions::default().include_inherited(true)) |
no test coverage detected