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