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