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

Function test_read_with_learnings

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

read_existing_learningsFunction · 0.85

Tested by

no test coverage detected