(repo: &Repository)
| 113 | } |
| 114 | |
| 115 | fn assert_clean(repo: &Repository) { |
| 116 | let status = repo |
| 117 | .status( |
| 118 | repo.require_working_copy_id().unwrap(), |
| 119 | StatusOptions::default(), |
| 120 | ) |
| 121 | .unwrap(); |
| 122 | assert!( |
| 123 | status.is_clean(), |
| 124 | "canonical cache baseline is dirty: {:?}", |
| 125 | status.entries() |
| 126 | ); |
| 127 | } |
| 128 | |
| 129 | /// A host repository with some history, and a cache materialized from it. |
| 130 | fn pair(history: impl Fn(&Repository)) -> (Pair, String, BTreeMap<u64, String>) { |
no test coverage detected