(t *testing.T)
| 17 | } |
| 18 | |
| 19 | func TestHTTPError_SetInternal(t *testing.T) { |
| 20 | internalErr := errors.New("internal error") |
| 21 | err := NewHTTPError(http.StatusInternalServerError, "server error").SetInternal(internalErr) |
| 22 | assert.Equal(t, internalErr, err.Internal) |
| 23 | } |
| 24 | |
| 25 | func TestHTTPError_Error(t *testing.T) { |
| 26 | err := NewHTTPError(http.StatusNotFound, "not found") |
nothing calls this directly
no test coverage detected