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

Function test_format_repo_and_workflow_only

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

Source from the content-addressed store, hash-verified

694
695 #[test]
696 fn test_format_repo_and_workflow_only() {
697 let learnings = Learnings {
698 repo: vec!["Pattern A".into()],
699 code: vec![CodeLearning::new("f.rs", Some(1), "Finding B")],
700 workflow: vec!["Tip C".into()],
701 };
702 let md = format_learnings_markdown(&learnings);
703 assert!(md.contains("### Repo"));
704 assert!(!md.contains("### Code")); // excluded from context file
705 assert!(md.contains("### Workflow"));
706 assert!(md.contains("- Pattern A"));
707 assert!(!md.contains("- f.rs:1")); // code learning excluded
708 assert!(md.contains("- Tip C"));
709 }
710
711 #[test]
712 fn test_context_file_learning_count() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected