MCPcopy Index your code
hub / github.com/kopia/kopia / mustPrefetchObjects

Function mustPrefetchObjects

internal/server/server_test.go:371–377  ·  view source on GitHub ↗
(ctx context.Context, t *testing.T, r repo.Repository, oid ...object.ID)

Source from the content-addressed store, hash-verified

369}
370
371func mustPrefetchObjects(ctx context.Context, t *testing.T, r repo.Repository, oid ...object.ID) {
372 t.Helper()
373
374 contents, err := r.PrefetchObjects(ctx, oid, "")
375 require.NoError(t, err)
376 require.NotEmpty(t, contents)
377}
378
379func mustPrefetchObjectsNotFound(ctx context.Context, t *testing.T, r repo.Repository, oid ...object.ID) {
380 t.Helper()

Callers 1

remoteRepositoryTestFunction · 0.85

Calls 2

HelperMethod · 0.80
PrefetchObjectsMethod · 0.65

Tested by

no test coverage detected