MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_memory_store_delete

Function test_memory_store_delete

core/src/store/tests.rs:484–493  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

482
483#[tokio::test]
484async fn test_memory_store_delete() {
485 let store = MemorySessionStore::new();
486 let session = create_test_session_data();
487
488 store.save(&session).await.unwrap();
489 assert!(store.exists(&session.id).await.unwrap());
490
491 store.delete(&session.id).await.unwrap();
492 assert!(!store.exists(&session.id).await.unwrap());
493}
494
495#[tokio::test]
496async fn test_memory_store_list() {

Callers

nothing calls this directly

Calls 3

create_test_session_dataFunction · 0.85
saveMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected