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