(report: &Value, path: &str)
| 60 | .unwrap_or_else(|| panic!("Missing {path} in {}", report["view_comparison"]["files"])) |
| 61 | } |
| 62 | fn states(report: &Value, path: &str) -> BTreeSet<String> { |
| 63 | file(report, path)["finding_states"] |
| 64 | .as_object() |
| 65 | .unwrap() |
| 66 | .values() |
| 67 | .map(|s| s["status"].as_str().unwrap().to_owned()) |
| 68 | .collect() |
| 69 | } |
| 70 | fn document(html: &str) -> Value { |
| 71 | serde_json::from_str( |
| 72 | html.split("id=\"review-data\"") |