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

Function test_memory_store_save_and_load

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

Source from the content-addressed store, hash-verified

470
471#[tokio::test]
472async fn test_memory_store_save_and_load() {
473 let store = MemorySessionStore::new();
474 let session = create_test_session_data();
475
476 store.save(&session).await.unwrap();
477
478 let loaded = store.load(&session.id).await.unwrap();
479 assert!(loaded.is_some());
480 assert_eq!(loaded.unwrap().id, session.id);
481}
482
483#[tokio::test]
484async fn test_memory_store_delete() {

Callers

nothing calls this directly

Calls 3

create_test_session_dataFunction · 0.85
saveMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected