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

Function task_satisfies_single_criterion

atomic-canonical/src/lift.rs:582–590  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

580
581 #[test]
582 fn task_satisfies_single_criterion() {
583 let body = ":::task{#WORD-5-1 status=done satisfies=WORD-5-ac-1}\nDo the thing.\n:::";
584 let node = lift_intent(&fm(), body).unwrap();
585 assert_eq!(node.has_task.len(), 1);
586 assert_eq!(
587 node.has_task[0].satisfies.as_slice(),
588 vec!["urn:atomic:ac:WORD-5-ac-1".to_string()]
589 );
590 }
591
592 #[test]
593 fn task_satisfies_multiple_criteria_via_criteria_alias() {

Callers

nothing calls this directly

Calls 3

lift_intentFunction · 0.85
fmFunction · 0.70
unwrapMethod · 0.45

Tested by

no test coverage detected