MCPcopy
hub / github.com/gorilla/websocket / TestDial

Function TestDial

client_server_test.go:229–239  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

227}
228
229func TestDial(t *testing.T) {
230 s := newServer(t)
231 defer s.Close()
232
233 ws, _, err := cstDialer.Dial(s.URL, nil)
234 if err != nil {
235 t.Fatalf("Dial: %v", err)
236 }
237 defer ws.Close()
238 sendRecv(t, ws)
239}
240
241func TestDialCookieJar(t *testing.T) {
242 s := newServer(t)

Callers

nothing calls this directly

Calls 4

newServerFunction · 0.85
sendRecvFunction · 0.85
DialMethod · 0.65
CloseMethod · 0.45

Tested by

no test coverage detected