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

Function test_memory_store_list

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

Source from the content-addressed store, hash-verified

494
495#[tokio::test]
496async fn test_memory_store_list() {
497 let store = MemorySessionStore::new();
498
499 for i in 1..=3 {
500 let mut session = create_test_session_data();
501 session.id = format!("session-{}", i);
502 store.save(&session).await.unwrap();
503 }
504
505 let list = store.list().await.unwrap();
506 assert_eq!(list.len(), 3);
507}
508
509// ========================================================================
510// SessionData Tests

Callers

nothing calls this directly

Calls 3

create_test_session_dataFunction · 0.85
saveMethod · 0.45
listMethod · 0.45

Tested by

no test coverage detected