(t *testing.T)
| 32 | } |
| 33 | |
| 34 | func TestIsAlreadyExists(t *testing.T) { |
| 35 | err := fmt.Errorf(`object "name": %w`, ErrAlreadyExists) |
| 36 | assert.Assert(t, IsAlreadyExistsError(err)) |
| 37 | |
| 38 | assert.Assert(t, !IsAlreadyExistsError(errors.New("another error"))) |
| 39 | } |
| 40 | |
| 41 | func TestIsForbidden(t *testing.T) { |
| 42 | err := fmt.Errorf(`object "name": %w`, ErrForbidden) |
nothing calls this directly
no test coverage detected