AssertGetMetadataNotFound asserts that GetMetadata() for specified blobID returns ErrNotFound.
(ctx context.Context, t *testing.T, s blob.Storage, blobID blob.ID)
| 128 | |
| 129 | // AssertGetMetadataNotFound asserts that GetMetadata() for specified blobID returns ErrNotFound. |
| 130 | func AssertGetMetadataNotFound(ctx context.Context, t *testing.T, s blob.Storage, blobID blob.ID) { |
| 131 | t.Helper() |
| 132 | |
| 133 | _, err := s.GetMetadata(ctx, blobID) |
| 134 | if !errors.Is(err, blob.ErrBlobNotFound) { |
| 135 | t.Fatalf("GetMetadata(%v) returned %v but expected ErrNotFound", blobID, err) |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | // AssertListResults asserts that the list results with given prefix return the specified list of names in order. |
| 140 | func AssertListResults(ctx context.Context, t *testing.T, s blob.Storage, prefix blob.ID, want ...blob.ID) { |
no test coverage detected