| 262 | use tempfile::TempDir; |
| 263 | |
| 264 | fn record_all(repo: &Repository, message: &str) -> Hash { |
| 265 | let header = ChangeHeader::new(message); |
| 266 | // `enrich_kg(false)` reproduces the opencode workflow: changes are |
| 267 | // recorded WITHOUT KG enrichment, so no `MODIFIES` edge is ever created. |
| 268 | // Coverage must still resolve from the change's own `file_ops`. |
| 269 | let options = RecordOptions::new() |
| 270 | .with_all(true) |
| 271 | .save_to_store(true) |
| 272 | .apply_after_record(true) |
| 273 | .enrich_kg(false); |
| 274 | *repo |
| 275 | .record(repo.require_working_copy_id().unwrap(), header, options) |
| 276 | .unwrap() |
| 277 | .hash() |
| 278 | } |
| 279 | |
| 280 | /// The key regression: coverage resolves from the change's own `file_ops` |
| 281 | /// even when the KG has NO `MODIFIES` edge for the change (i.e. the |