(t *testing.T)
| 91 | } |
| 92 | |
| 93 | func TestWriteUserIndex_Error(t *testing.T) { |
| 94 | t.Parallel() |
| 95 | |
| 96 | ctx := context.Background() |
| 97 | bkt := &bucket.ClientMock{} |
| 98 | |
| 99 | // Mock upload error |
| 100 | bkt.MockUpload(UserIndexCompressedFilename, assert.AnError) |
| 101 | |
| 102 | // Test writing index with error |
| 103 | err := WriteUserIndex(ctx, bkt, &UserIndex{}) |
| 104 | require.Error(t, err) |
| 105 | assert.Contains(t, err.Error(), "upload user index") |
| 106 | } |
nothing calls this directly
no test coverage detected