(t *testing.T)
| 39 | } |
| 40 | |
| 41 | func TestIsForbidden(t *testing.T) { |
| 42 | err := fmt.Errorf(`object "name": %w`, ErrForbidden) |
| 43 | assert.Assert(t, IsForbiddenError(err)) |
| 44 | |
| 45 | assert.Assert(t, !IsForbiddenError(errors.New("another error"))) |
| 46 | } |
| 47 | |
| 48 | func TestIsUnknown(t *testing.T) { |
| 49 | err := fmt.Errorf(`object "name": %w`, ErrUnknown) |
nothing calls this directly
no test coverage detected