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

Function gate_rejects_unknown_status

atomic-canonical/tests/roundtrip.rs:124–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122
123#[test]
124fn gate_rejects_unknown_status() {
125 let (id, kp) = dev_identity();
126 let mut fm = frontmatter();
127 fm.insert("status".into(), Value::String("shipped".into()));
128 let node = lift_and_attest(&fm, ":::why{}\nr\n:::", &id, &kp).unwrap();
129 let report = validate_intent(&node);
130 assert!(!report.conforms);
131 assert!(report
132 .results
133 .iter()
134 .any(|v| v.path.as_deref() == Some("status")));
135}
136
137#[test]
138fn content_hash_is_deterministic() {

Callers

nothing calls this directly

Calls 6

frontmatterFunction · 0.85
lift_and_attestFunction · 0.85
validate_intentFunction · 0.85
dev_identityFunction · 0.70
insertMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected