(root: &Path, field: &str)
| 161 | } |
| 162 | |
| 163 | fn checkpoint_field(root: &Path, field: &str) -> String { |
| 164 | let bytes = fs::read(root.join(".atomic/bridge/workspace.json")).expect("checkpoint exists"); |
| 165 | let value: serde_json::Value = serde_json::from_slice(&bytes).expect("checkpoint json"); |
| 166 | value[field].as_str().unwrap_or("").to_string() |
| 167 | } |
| 168 | |
| 169 | fn head_map(root: &Path) -> serde_json::Value { |
| 170 | let bytes = fs::read(root.join(".atomic/bridge/head-map.json")).expect("head map exists"); |
no test coverage detected