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

Function test_save_creates_parent_dirs

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

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected