(t *testing.T)
| 52 | } |
| 53 | |
| 54 | func TestReadUserIndex_NotFound(t *testing.T) { |
| 55 | t.Parallel() |
| 56 | |
| 57 | ctx := context.Background() |
| 58 | bkt, _ := cortex_testutil.PrepareFilesystemBucket(t) |
| 59 | |
| 60 | // Test reading non-existent index |
| 61 | _, err := ReadUserIndex(ctx, bkt, log.NewNopLogger()) |
| 62 | require.Error(t, err) |
| 63 | assert.Equal(t, ErrIndexNotFound, err) |
| 64 | } |
| 65 | |
| 66 | func TestReadUserIndex_Corrupted(t *testing.T) { |
| 67 | t.Parallel() |
nothing calls this directly
no test coverage detected