(t *testing.T, st cache.Storage, expectedContents ...blob.ID)
| 335 | } |
| 336 | |
| 337 | func verifyStorageContentList(t *testing.T, st cache.Storage, expectedContents ...blob.ID) { |
| 338 | t.Helper() |
| 339 | |
| 340 | var foundContents []blob.ID |
| 341 | |
| 342 | require.NoError(t, st.ListBlobs(testlogging.Context(t), "", func(bm blob.Metadata) error { |
| 343 | foundContents = append(foundContents, bm.BlobID) |
| 344 | return nil |
| 345 | })) |
| 346 | |
| 347 | slices.Sort(foundContents) |
| 348 | |
| 349 | assert.Equal(t, expectedContents, foundContents, "unexpected content list") |
| 350 | } |
| 351 | |
| 352 | type withoutTouchBlob struct { |
| 353 | blob.Storage |
no test coverage detected