(t *testing.T)
| 106 | } |
| 107 | |
| 108 | func TestResponse_FlushPanics(t *testing.T) { |
| 109 | e := New() |
| 110 | rw := new(testResponseWriter) |
| 111 | res := NewResponse(rw, e.Logger) |
| 112 | |
| 113 | // we test that we behave as before unwrapping flushers - flushing writer that does not support it causes panic |
| 114 | assert.PanicsWithError(t, "echo: response writer *echo.testResponseWriter does not support flushing (http.Flusher interface)", func() { |
| 115 | res.Flush() |
| 116 | }) |
| 117 | } |
| 118 | |
| 119 | func TestResponse_UnwrapResponse(t *testing.T) { |
| 120 | orgRes := NewResponse(httptest.NewRecorder(), nil) |
nothing calls this directly
no test coverage detected
searching dependent graphs…