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:694–707  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected