MCPcopy Index your code
hub / github.com/endbasic/endbasic / test_parse_lang_reference_many

Function test_parse_lang_reference_many

std/src/help.rs:683–706  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

681
682 #[test]
683 fn test_parse_lang_reference_many() {
684 let content = parse_lang_reference(
685 "
686
687# First
688
689This is the first topic with
690a couple of lines.
691
692# Second
693
694This is the second topic with just one line.
695
696# Third
697
698And this is the last one without EOF.",
699 );
700 let exp_content = vec![
701 ("First", "This is the first topic with\na couple of lines."),
702 ("Second", "This is the second topic with just one line."),
703 ("Third", "And this is the last one without EOF."),
704 ];
705 assert_eq!(exp_content, content);
706 }
707
708 #[test]
709 fn test_parse_lang_reference_ignore_header() {

Callers

nothing calls this directly

Calls 1

parse_lang_referenceFunction · 0.85

Tested by

no test coverage detected