()
| 1190 | |
| 1191 | #[test] |
| 1192 | fn test_save_creates_parent_dirs() { |
| 1193 | let dir = TempDir::new().unwrap(); |
| 1194 | let learnings = Learnings { |
| 1195 | repo: vec!["test".into()], |
| 1196 | code: vec![], |
| 1197 | workflow: vec![], |
| 1198 | }; |
| 1199 | |
| 1200 | // "unknown" agent writes to .atomic/learnings.md — needs parent dir |
| 1201 | let result = |
| 1202 | save_learnings_to_context_file(dir.path(), "unknown-agent", &learnings).unwrap(); |
| 1203 | |
| 1204 | assert!(result.has_changes()); |
| 1205 | assert!(dir.path().join(".atomic/learnings.md").exists()); |
| 1206 | } |
| 1207 | |
| 1208 | #[test] |
| 1209 | fn test_save_gemini() { |
nothing calls this directly
no test coverage detected