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

Function test_file_store_load_nonexistent

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

Source from the content-addressed store, hash-verified

125
126#[tokio::test]
127async fn test_file_store_load_nonexistent() {
128 let dir = tempdir().unwrap();
129 let store = FileSessionStore::new(dir.path()).await.unwrap();
130
131 let loaded = store.load("nonexistent").await.unwrap();
132 assert!(loaded.is_none());
133}
134
135#[tokio::test]
136async fn test_file_store_delete() {

Callers

nothing calls this directly

Calls 2

pathMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected