(t *testing.T)
| 367 | } |
| 368 | |
| 369 | func TestGzipResponseWriter_CanNotHijack(t *testing.T) { |
| 370 | trwu := testResponseWriterUnwrapper{rw: httptest.NewRecorder()} |
| 371 | bdrw := gzipResponseWriter{ |
| 372 | ResponseWriter: &trwu, // this RW supports hijacking through unwrapping |
| 373 | } |
| 374 | _, _, err := bdrw.Hijack() |
| 375 | assert.EqualError(t, err, "feature not supported") |
| 376 | } |
| 377 | |
| 378 | func BenchmarkGzip(b *testing.B) { |
| 379 | e := echo.New() |
nothing calls this directly
no test coverage detected
searching dependent graphs…