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

Function mustGetObjectNotFound

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

Source from the content-addressed store, hash-verified

361}
362
363func mustGetObjectNotFound(ctx context.Context, t *testing.T, r repo.Repository, oid object.ID) {
364 t.Helper()
365
366 if _, err := r.OpenObject(ctx, oid); !errors.Is(err, object.ErrObjectNotFound) {
367 t.Fatalf("unexpected non-existent object error: %v", err)
368 }
369}
370
371func mustPrefetchObjects(ctx context.Context, t *testing.T, r repo.Repository, oid ...object.ID) {
372 t.Helper()

Callers 1

remoteRepositoryTestFunction · 0.85

Calls 3

HelperMethod · 0.80
FatalfMethod · 0.80
OpenObjectMethod · 0.65

Tested by

no test coverage detected