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

Function memory_gate_rejects_unknown_status

atomic-canonical/src/gate.rs:658–667  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

656
657 #[test]
658 fn memory_gate_rejects_unknown_status() {
659 let mut node = attested_memory();
660 node.status = "archived".to_string();
661 let report = validate_memory(&node);
662 assert!(!report.conforms);
663 assert!(report
664 .results
665 .iter()
666 .any(|v| v.shape == "MemoryShape" && v.path.as_deref() == Some("status")));
667 }
668
669 #[test]
670 fn memory_gate_requires_proof_and_attributed_to_and_text() {

Callers

nothing calls this directly

Calls 2

attested_memoryFunction · 0.85
validate_memoryFunction · 0.85

Tested by

no test coverage detected