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

Function newServer

client_server_test.go:62–68  ·  client_server_test.go::newServer
(t *testing.T)

Source from the content-addressed store, hash-verified

60)
61
62func newServer(t *testing.T) *cstServer {
63 var s cstServer
64 s.Server = httptest.NewServer(cstHandler{t})
65 s.Server.URL += cstRequestURI
66 s.URL = makeWsProto(s.Server.URL)
67 return &s
68}
69
70func newTLSServer(t *testing.T) *cstServer {
71 var s cstServer

Callers 13

TestProxyDialFunction · 0.85
TestDialFunction · 0.85
TestDialCookieJarFunction · 0.85
TestDialTimeoutFunction · 0.85
TestHandshakeTimeoutFunction · 0.85
TestDialBadSchemeFunction · 0.85
TestDialBadOriginFunction · 0.85
TestDialBadHeaderFunction · 0.85
TestHandshakeFunction · 0.85
TestDialCompressionFunction · 0.85

Calls 1

makeWsProtoFunction · 0.85

Tested by

no test coverage detected