(t *testing.T)
| 64 | } |
| 65 | |
| 66 | func TestReadUserIndex_Corrupted(t *testing.T) { |
| 67 | t.Parallel() |
| 68 | |
| 69 | ctx := context.Background() |
| 70 | bkt := &bucket.ClientMock{} |
| 71 | |
| 72 | // Mock a corrupted index file |
| 73 | bkt.MockGet(UserIndexCompressedFilename, "invalid gzip content", nil) |
| 74 | |
| 75 | // Test reading corrupted index |
| 76 | _, err := ReadUserIndex(ctx, bkt, log.NewNopLogger()) |
| 77 | require.Error(t, err) |
| 78 | assert.Equal(t, ErrIndexCorrupted, err) |
| 79 | } |
| 80 | |
| 81 | func TestUserIndex_GetUpdatedAt(t *testing.T) { |
| 82 | t.Parallel() |
nothing calls this directly
no test coverage detected