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

Function met_ac_requiring

atomic-canonical/src/gate.rs:903–907  ·  view source on GitHub ↗

A met AC that declares `required_kinds` (so it takes the EvidenceShape path, not the back-compat verifier/evidence presence check).

(id: &str, required: &[&str])

Source from the content-addressed store, hash-verified

901 /// A met AC that declares `required_kinds` (so it takes the EvidenceShape
902 /// path, not the back-compat verifier/evidence presence check).
903 fn met_ac_requiring(id: &str, required: &[&str]) -> AcceptanceCriterion {
904 let mut a = met_ac(id);
905 a.required_kinds = required.iter().map(|k| k.to_string()).collect();
906 a
907 }
908
909 #[test]
910 fn evidence_shape_rejects_met_ac_with_no_verifications() {

Callers

nothing calls this directly

Calls 3

met_acFunction · 0.85
collectMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected