MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / states

Function states

atomic-cli/tests/review_comparison.rs:62–69  ·  view source on GitHub ↗
(report: &Value, path: &str)

Source from the content-addressed store, hash-verified

60 .unwrap_or_else(|| panic!("Missing {path} in {}", report["view_comparison"]["files"]))
61}
62fn 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}
70fn document(html: &str) -> Value {
71 serde_json::from_str(
72 html.split("id=\"review-data\"")

Callers

nothing calls this directly

Calls 4

fileFunction · 0.70
collectMethod · 0.45
unwrapMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected