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

Function test_store_save_and_load

atomic-agent/src/turn/session.rs:1132–1144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1130
1131 #[test]
1132 fn test_store_save_and_load() {
1133 let (_dir, store) = make_store();
1134 let session = make_session();
1135
1136 store.save(&session).unwrap();
1137
1138 let loaded = store.load("sess-abc-123").unwrap();
1139 assert!(loaded.is_some());
1140
1141 let loaded = loaded.unwrap();
1142 assert_eq!(loaded.session_id, "sess-abc-123");
1143 assert_eq!(loaded.agent_name, "claude-code");
1144 }
1145
1146 #[test]
1147 fn test_store_concurrent_saves_do_not_share_temp_files() {

Callers

nothing calls this directly

Calls 5

make_storeFunction · 0.85
make_sessionFunction · 0.70
unwrapMethod · 0.45
saveMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected