(pair: &Pair, view: &str, live: &BTreeMap<u64, String>, what: &str)
| 181 | } |
| 182 | |
| 183 | fn assert_parity(pair: &Pair, view: &str, live: &BTreeMap<u64, String>, what: &str) { |
| 184 | pair.hydrate(view, live); |
| 185 | let h = header(what); |
| 186 | let host = change_bytes(&pair.host, h.clone()); |
| 187 | let cache = change_bytes(&pair.cache, h); |
| 188 | assert_eq!( |
| 189 | host.0, cache.0, |
| 190 | "{what}: the cache records a different change" |
| 191 | ); |
| 192 | assert_eq!(host.1, cache.1, "{what}: same hash, different bytes"); |
| 193 | } |
| 194 | |
| 195 | fn two_files(repo: &Repository) { |
| 196 | let root = repo.root().to_path_buf(); |
no test coverage detected