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

Function test_read_with_learnings

atomic-agent/src/learnings.rs:821–830  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

819
820 #[test]
821 fn test_read_with_learnings() {
822 let content = format!(
823 "# Project\n\n{}\n\n### Repo\n- Learning A\n- Learning B\n\n{}\n",
824 SECTION_START, SECTION_END
825 );
826 let learnings = read_existing_learnings(&content);
827 assert_eq!(learnings.len(), 2);
828 assert_eq!(learnings[0], "- Learning A");
829 assert_eq!(learnings[1], "- Learning B");
830 }
831
832 #[test]
833 fn test_read_filters_headings() {

Callers

nothing calls this directly

Calls 1

read_existing_learningsFunction · 0.85

Tested by

no test coverage detected