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

Function local_id

libatomic/src/review/graph.rs:32–37  ·  view source on GitHub ↗
(kind: &str, value: &impl serde::Serialize)

Source from the content-addressed store, hash-verified

30}
31
32fn local_id(kind: &str, value: &impl serde::Serialize) -> String {
33 format!(
34 "{kind}:{}",
35 Hash::of(&serde_json::to_vec(value).expect("serializable graph identity")).to_base32()
36 )
37}
38
39pub(super) fn finding_id(finding: &ReviewFinding) -> String {
40 let mut finding = finding.clone();

Callers 5

finding_idFunction · 0.70
buildFunction · 0.70
projectFunction · 0.70
project_checksFunction · 0.70
project_metricsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected