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

Function test_store_clear

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

Source from the content-addressed store, hash-verified

1222
1223 #[test]
1224 fn test_store_clear() {
1225 let (_dir, store) = make_store();
1226
1227 store.save(&make_session()).unwrap();
1228 assert!(store.load("sess-abc-123").unwrap().is_some());
1229
1230 store.clear("sess-abc-123").unwrap();
1231 assert!(store.load("sess-abc-123").unwrap().is_none());
1232 }
1233
1234 #[test]
1235 fn test_store_clear_nonexistent_is_ok() {

Callers

nothing calls this directly

Calls 5

make_storeFunction · 0.85
make_sessionFunction · 0.70
clearMethod · 0.65
unwrapMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected