MCPcopy
hub / github.com/gin-gonic/gin / Hijack

Method Hijack

response_writer_test.go:135–138  ·  view source on GitHub ↗

Hijack implements the http.Hijacker interface. It just records that it was called.

()

Source from the content-addressed store, hash-verified

133
134// Hijack implements the http.Hijacker interface. It just records that it was called.
135func (m *mockHijacker) Hijack() (net.Conn, *bufio.ReadWriter, error) {
136 m.hijacked = true
137 return nil, nil, nil
138}
139
140func TestResponseWriterHijackAfterWrite(t *testing.T) {
141 tests := []struct {

Calls

no outgoing calls

Tested by

no test coverage detected