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

Function parses_task_with_nested_file_ref

atomic-canonical/src/directive.rs:375–384  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

373
374 #[test]
375 fn parses_task_with_nested_file_ref() {
376 let body = ":::task{#t1 status=done satisfies=WORD-5-ac-1}\nAdd modal.\n::file-ref{path=src/App.tsx}\n:::";
377 let ds = parse(body).unwrap();
378 let t = &ds[0];
379 assert_eq!(t.name, "task");
380 assert_eq!(t.children.len(), 1);
381 assert_eq!(t.children[0].name, "file-ref");
382 assert_eq!(t.children[0].attr("path"), Some("src/App.tsx"));
383 assert_eq!(t.body, "Add modal.");
384 }
385
386 #[test]
387 fn quoted_values_keep_spaces() {

Callers

nothing calls this directly

Calls 2

parseFunction · 0.70
unwrapMethod · 0.45

Tested by

no test coverage detected