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

Function task_satisfies_single_criterion

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

Source from the content-addressed store, hash-verified

406
407 #[test]
408 fn task_satisfies_single_criterion() {
409 let body = ":::task{#WORD-5-1 status=done satisfies=WORD-5-ac-1}\nDo the thing.\n:::";
410 let node = lift_intent(&fm(), body).unwrap();
411 assert_eq!(node.has_task.len(), 1);
412 assert_eq!(
413 node.has_task[0].satisfies.as_slice(),
414 vec!["urn:atomic:ac:WORD-5-ac-1".to_string()]
415 );
416 }
417
418 #[test]
419 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