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

Function TestDialTLS

client_server_test.go:303–315  ·  client_server_test.go::TestDialTLS
(t *testing.T)

Source from the content-addressed store, hash-verified

301}
302
303func TestDialTLS(t *testing.T) {
304 s := newTLSServer(t)
305 defer s.Close()
306
307 d := cstDialer
308 d.TLSClientConfig = &tls.Config{RootCAs: rootCAs(t, s.Server)}
309 ws, _, err := d.Dial(s.URL, nil)
310 if err != nil {
311 t.Fatalf("Dial: %v", err)
312 }
313 defer ws.Close()
314 sendRecv(t, ws)
315}
316
317func TestDialTimeout(t *testing.T) {
318 s := newServer(t)

Callers

nothing calls this directly

Calls 5

newTLSServerFunction · 0.85
rootCAsFunction · 0.85
sendRecvFunction · 0.85
DialMethod · 0.65
CloseMethod · 0.45

Tested by

no test coverage detected