(t *testing.T)
| 25 | ) |
| 26 | |
| 27 | func TestIsNotFound(t *testing.T) { |
| 28 | err := fmt.Errorf(`object "name": %w`, ErrNotFound) |
| 29 | assert.Assert(t, IsNotFoundError(err)) |
| 30 | |
| 31 | assert.Assert(t, !IsNotFoundError(errors.New("another error"))) |
| 32 | } |
| 33 | |
| 34 | func TestIsAlreadyExists(t *testing.T) { |
| 35 | err := fmt.Errorf(`object "name": %w`, ErrAlreadyExists) |
nothing calls this directly
no test coverage detected