MCPcopy
hub / github.com/labstack/echo / TestResponse_Flush

Function TestResponse_Flush

response_test.go:84–92  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

82}
83
84func TestResponse_Flush(t *testing.T) {
85 e := New()
86 rec := httptest.NewRecorder()
87 res := NewResponse(rec, e.Logger)
88
89 res.Write([]byte("test"))
90 res.Flush()
91 assert.True(t, rec.Flushed)
92}
93
94type testResponseWriter struct {
95}

Callers

nothing calls this directly

Calls 4

WriteMethod · 0.95
FlushMethod · 0.95
NewFunction · 0.85
NewResponseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…