()
| 146 | use tempfile::tempdir; |
| 147 | |
| 148 | fn open_pristine() -> (tempfile::TempDir, Pristine) { |
| 149 | let dir = tempdir().unwrap(); |
| 150 | let db_path = dir.path().join("pristine"); |
| 151 | let pristine = Pristine::open(&db_path).unwrap(); |
| 152 | (dir, pristine) |
| 153 | } |
| 154 | |
| 155 | fn branch(change: u64, idx: u32) -> BranchId { |
| 156 | BranchId::new(NodeId::new(change), idx) |