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

Function memory_gate_rejects_unknown_kind

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

Source from the content-addressed store, hash-verified

644
645 #[test]
646 fn memory_gate_rejects_unknown_kind() {
647 let mut node = attested_memory();
648 node.memory_kind = "architecture".to_string();
649 let report = validate_memory(&node);
650 assert!(!report.conforms);
651 assert!(report
652 .results
653 .iter()
654 .any(|v| v.shape == "MemoryShape" && v.path.as_deref() == Some("memoryKind")));
655 }
656
657 #[test]
658 fn memory_gate_rejects_unknown_status() {

Callers

nothing calls this directly

Calls 2

attested_memoryFunction · 0.85
validate_memoryFunction · 0.85

Tested by

no test coverage detected