(t *testing.T)
| 33 | } |
| 34 | |
| 35 | func TestError_StatusCode(t *testing.T) { |
| 36 | if don.Error(don.ErrBadRequest, 0).StatusCode() != fasthttp.StatusBadRequest { |
| 37 | t.Error("should respect wrapped error's status code") |
| 38 | } |
| 39 | if don.Error(don.ErrBadRequest, fasthttp.StatusConflict).StatusCode() != fasthttp.StatusConflict { |
| 40 | t.Error("should ignore wrapped error's status code if explicitly set") |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | func TestError_MarshalText(t *testing.T) { |
| 45 | b, _ := don.Error(errTest, 0).MarshalText() |
nothing calls this directly
no test coverage detected