(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestNewHTTPError(t *testing.T) { |
| 13 | err := NewHTTPError(http.StatusBadRequest, "bad request") |
| 14 | assert.Equal(t, http.StatusBadRequest, err.StatusCode) |
| 15 | assert.Equal(t, "bad request", err.Msg) |
| 16 | assert.Nil(t, err.Internal) |
| 17 | } |
| 18 | |
| 19 | func TestHTTPError_SetInternal(t *testing.T) { |
| 20 | internalErr := errors.New("internal error") |
nothing calls this directly
no test coverage detected