MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / test_store

Function test_store

crates/openshell-server/src/compute/lease.rs:257–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

255 use crate::persistence::Store;
256
257 async fn test_store() -> Arc<Store> {
258 Arc::new(
259 Store::connect("sqlite::memory:?cache=shared")
260 .await
261 .unwrap(),
262 )
263 }
264
265 fn lease(store: Arc<Store>, id: &str, ttl: Duration) -> ReconcilerLease {
266 ReconcilerLease::new(store, id.to_string(), ttl)

Calls 1

connectFunction · 0.85

Tested by

no test coverage detected