(t *testing.T)
| 32 | } |
| 33 | |
| 34 | func TestHTTPError_Unwrap(t *testing.T) { |
| 35 | internalErr := errors.New("internal error") |
| 36 | err := NewHTTPError(http.StatusInternalServerError, "server error").SetInternal(internalErr) |
| 37 | assert.Equal(t, internalErr, err.Unwrap()) |
| 38 | } |
| 39 | |
| 40 | func TestDefaultErrHandlerFunc(t *testing.T) { |
| 41 | rec := httptest.NewRecorder() |
nothing calls this directly
no test coverage detected