()
| 1179 | |
| 1180 | #[test] |
| 1181 | fn test_save_empty_learnings() { |
| 1182 | let dir = TempDir::new().unwrap(); |
| 1183 | let learnings = Learnings::default(); |
| 1184 | |
| 1185 | let result = save_learnings_to_context_file(dir.path(), "claude-code", &learnings).unwrap(); |
| 1186 | |
| 1187 | assert_eq!(result.added, 0); |
| 1188 | assert!(!result.has_changes()); |
| 1189 | // File should not be created |
| 1190 | assert!(!dir.path().join("CLAUDE.md").exists()); |
| 1191 | } |
| 1192 | |
| 1193 | #[test] |
| 1194 | fn test_save_creates_parent_dirs() { |
nothing calls this directly
no test coverage detected