()
| 230 | |
| 231 | #[tokio::test] |
| 232 | async 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] |
| 252 | async fn sqlite_delete_behavior() { |
nothing calls this directly
no test coverage detected