MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_save_gemini

Function test_save_gemini

atomic-agent/src/learnings.rs:1209–1222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected