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

Source from the content-addressed store, hash-verified

451
452 #[test]
453 fn gate_accepts_known_task_status() {
454 for status in ["open", "done"] {
455 let mut node = attested_base();
456 let mut t = task("urn:atomic:task:gate-1-1", &[]);
457 t.task_status = status.to_string();
458 node.has_task = vec![t];
459 assert!(
460 validate_intent(&node).conforms,
461 "taskStatus '{status}' should conform"
462 );
463 }
464 }
465
466 #[test]
467 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