| 1298 | } |
| 1299 | |
| 1300 | fn input_file( |
| 1301 | repo: &Repository, |
| 1302 | report: &IncrementalReport, |
| 1303 | findings: Vec<atomic_canonical::review_graph::SubmittedFinding>, |
| 1304 | ) -> std::path::PathBuf { |
| 1305 | let path = repo.root().join("review-observations.json"); |
| 1306 | std::fs::write( |
| 1307 | &path, |
| 1308 | serde_json::to_vec(&atomic_canonical::review_graph::FindingsInput { |
| 1309 | schema: atomic_canonical::review_graph::INPUT_SCHEMA.into(), |
| 1310 | scope: report.graph.as_ref().unwrap().scope.clone(), |
| 1311 | findings, |
| 1312 | risk_assessment: None, |
| 1313 | }) |
| 1314 | .unwrap(), |
| 1315 | ) |
| 1316 | .unwrap(); |
| 1317 | path |
| 1318 | } |
| 1319 | |
| 1320 | #[test] |
| 1321 | fn graph_links_numbered_findings_to_unmet_criteria_without_rewriting_intents() { |