(t *testing.T)
| 493 | } |
| 494 | |
| 495 | func TestContextNoContent(t *testing.T) { |
| 496 | e := New() |
| 497 | rec := httptest.NewRecorder() |
| 498 | req := httptest.NewRequest(http.MethodGet, "/?pretty", nil) |
| 499 | c := e.NewContext(req, rec) |
| 500 | |
| 501 | c.NoContent(http.StatusOK) |
| 502 | assert.Equal(t, http.StatusOK, rec.Code) |
| 503 | } |
| 504 | |
| 505 | func TestContextCookie(t *testing.T) { |
| 506 | e := New() |
nothing calls this directly
no test coverage detected
searching dependent graphs…