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