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

Function TestDialCompression

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

Source from the content-addressed store, hash-verified

751}
752
753func TestDialCompression(t *testing.T) {
754 s := newServer(t)
755 defer s.Close()
756
757 dialer := cstDialer
758 dialer.EnableCompression = true
759 ws, _, err := dialer.Dial(s.URL, nil)
760 if err != nil {
761 t.Fatalf("Dial: %v", err)
762 }
763 defer ws.Close()
764 sendRecv(t, ws)
765}
766
767func TestSocksProxyDial(t *testing.T) {
768 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