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

Function test_format_code_excluded

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

Source from the content-addressed store, hash-verified

676
677 #[test]
678 fn test_format_code_excluded() {
679 let learnings = Learnings {
680 repo: vec![],
681 code: vec![CodeLearning::new("src/auth.rs", Some(42), "Wrong timezone")
682 .with_function("validate_token")
683 .with_category("bug")],
684 workflow: vec![],
685 };
686 let md = format_learnings_markdown(&learnings);
687 // Code learnings should NOT appear in the context file format
688 assert!(!md.contains("### Code"));
689 assert!(!md.contains("src/auth.rs"));
690 assert!(md.is_empty());
691 }
692
693 #[test]
694 fn test_format_repo_and_workflow_only() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected