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

Function test_save_empty_learnings

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

Source from the content-addressed store, hash-verified

1177
1178 #[test]
1179 fn test_save_empty_learnings() {
1180 let dir = TempDir::new().unwrap();
1181 let learnings = Learnings::default();
1182
1183 let result = save_learnings_to_context_file(dir.path(), "claude-code", &learnings).unwrap();
1184
1185 assert_eq!(result.added, 0);
1186 assert!(!result.has_changes());
1187 // File should not be created
1188 assert!(!dir.path().join("CLAUDE.md").exists());
1189 }
1190
1191 #[test]
1192 fn test_save_creates_parent_dirs() {

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected