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

Function sqlite_list_paging

crates/openshell-server/src/persistence/tests.rs:232–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230
231#[tokio::test]
232async fn sqlite_list_paging() {
233 let store = test_store().await;
234
235 for idx in 0..5 {
236 let id = format!("id-{idx}");
237 let name = format!("name-{idx}");
238 let payload = format!("payload-{idx}");
239 store
240 .put("sandbox", &id, &name, payload.as_bytes(), None)
241 .await
242 .unwrap();
243 }
244
245 let records = store.list("sandbox", 2, 1).await.unwrap();
246 assert_eq!(records.len(), 2);
247 assert_eq!(records[0].name, "name-1");
248 assert_eq!(records[1].name, "name-2");
249}
250
251#[tokio::test]
252async fn sqlite_delete_behavior() {

Callers

nothing calls this directly

Calls 3

test_storeFunction · 0.70
putMethod · 0.45
listMethod · 0.45

Tested by

no test coverage detected