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

Function inline_parse_extracts_multiple

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

Source from the content-addressed store, hash-verified

422
423 #[test]
424 fn inline_parse_extracts_multiple() {
425 let text = "see :ref[a]{to=urn:atomic:intent:1 edge=depends} and :ref[b]{to=urn:atomic:intent:2 edge=blockedBy}";
426 let ds = parse_inline(text).unwrap();
427 assert_eq!(ds.len(), 2);
428 assert_eq!(ds[0].label.as_deref(), Some("a"));
429 assert_eq!(ds[1].attr("edge"), Some("blockedBy"));
430 }
431
432 #[test]
433 fn dids_urns_and_unregistered_names_stay_prose() {

Callers

nothing calls this directly

Calls 2

parse_inlineFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected