(t *testing.T)
| 35 | } |
| 36 | |
| 37 | func TestBuildUsersFromChunksMissingChunk(t *testing.T) { |
| 38 | chunks := map[uint64][]*common.User{ |
| 39 | 1: { |
| 40 | {Email: "only"}, |
| 41 | }, |
| 42 | } |
| 43 | |
| 44 | _, err := BuildUsersFromChunks(chunks, 1, true) |
| 45 | if err == nil || !strings.Contains(err.Error(), "missing chunk index 0") { |
| 46 | t.Fatalf("expected missing chunk index error, got: %v", err) |
| 47 | } |
| 48 | } |
nothing calls this directly
no test coverage detected