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

Function gate_accepts_known_task_status

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

Source from the content-addressed store, hash-verified

663
664 #[test]
665 fn gate_accepts_known_task_status() {
666 for status in ["open", "done"] {
667 let mut node = attested_base();
668 let mut t = task("urn:atomic:task:gate-1-1", &[]);
669 t.task_status = status.to_string();
670 node.has_task = vec![t];
671 assert!(
672 validate_intent(&node).conforms,
673 "taskStatus '{status}' should conform"
674 );
675 }
676 }
677
678 #[test]
679 fn gate_rejects_unknown_task_status() {

Callers

nothing calls this directly

Calls 2

attested_baseFunction · 0.85
taskFunction · 0.85

Tested by

no test coverage detected