(repo: &Repository, path: &str, text: &str)
| 25 | .hash() |
| 26 | } |
| 27 | fn add(repo: &Repository, path: &str, text: &str) { |
| 28 | let full = repo.root().join(path); |
| 29 | std::fs::create_dir_all(full.parent().unwrap()).unwrap(); |
| 30 | std::fs::write(full, text).unwrap(); |
| 31 | repo.add( |
| 32 | repo.require_working_copy_id().unwrap(), |
| 33 | path, |
| 34 | TrackingOptions::default(), |
| 35 | ) |
| 36 | .unwrap(); |
| 37 | } |
| 38 | fn governance(repo: &Repository, hash: Hash, plan: &str) { |
| 39 | let session = format!("comparison-{plan}"); |
| 40 | let graph = ProvenanceGraph::builder(&session, "test") |
no test coverage detected