()
| 1209 | |
| 1210 | #[test] |
| 1211 | fn test_save_gemini() { |
| 1212 | let dir = TempDir::new().unwrap(); |
| 1213 | let learnings = Learnings { |
| 1214 | repo: vec!["Gemini learning".into()], |
| 1215 | code: vec![], |
| 1216 | workflow: vec![], |
| 1217 | }; |
| 1218 | |
| 1219 | save_learnings_to_context_file(dir.path(), "gemini-cli", &learnings).unwrap(); |
| 1220 | |
| 1221 | assert!(dir.path().join("GEMINI.md").exists()); |
| 1222 | let content = std::fs::read_to_string(dir.path().join("GEMINI.md")).unwrap(); |
| 1223 | assert!(content.contains("- Gemini learning")); |
| 1224 | } |
| 1225 | |
| 1226 | // SaveResult display |
| 1227 |
nothing calls this directly
no test coverage detected