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

Function test_save_empty_learnings

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

Source from the content-addressed store, hash-verified

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