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:718–729  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

716
717 #[test]
718 fn gate_accepts_known_task_status() {
719 for status in ["open", "done"] {
720 let mut node = attested_base();
721 let mut t = task("urn:atomic:task:gate-1-1", &[]);
722 t.task_status = status.to_string();
723 node.has_task = vec![t];
724 assert!(
725 validate_intent(&node).conforms,
726 "taskStatus '{status}' should conform"
727 );
728 }
729 }
730
731 #[test]
732 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