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:1194–1208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected