(t *testing.T)
| 32 | } |
| 33 | |
| 34 | func TestBatchErrorOneError(t *testing.T) { |
| 35 | var batch BatchError |
| 36 | batch.Add(errors.New(err1)) |
| 37 | assert.NotNil(t, batch.Err()) |
| 38 | assert.Equal(t, err1, batch.Err().Error()) |
| 39 | assert.True(t, batch.NotNil()) |
| 40 | } |
| 41 | |
| 42 | func TestBatchErrorWithErrors(t *testing.T) { |
| 43 | var batch BatchError |