MCPcopy Create free account
hub / github.com/labstack/echo / TestGzipResponseWriter_CanNotHijack

Function TestGzipResponseWriter_CanNotHijack

middleware/compress_test.go:369–376  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

367}
368
369func 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
378func BenchmarkGzip(b *testing.B) {
379 e := echo.New()

Callers

nothing calls this directly

Calls 1

HijackMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…