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

Function verify_triage_reference

atomic-canonical/src/triage_ref.rs:57–59  ·  view source on GitHub ↗

Recompute the reference for `pins` and compare it to `reference`. True iff the pins hash to exactly this reference (order-insensitive for candidate changes).

(pins: &TriagePins, reference: &str)

Source from the content-addressed store, hash-verified

55/// Recompute the reference for `pins` and compare it to `reference`. True iff the
56/// pins hash to exactly this reference (order-insensitive for candidate changes).
57pub fn verify_triage_reference(pins: &TriagePins, reference: &str) -> bool {
58 triage_reference(pins) == reference
59}
60
61#[cfg(test)]
62mod tests {

Callers

nothing calls this directly

Calls 1

triage_referenceFunction · 0.85

Tested by

no test coverage detected