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

Function test_format_code_excluded

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected