()
| 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() { |
nothing calls this directly
no test coverage detected