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

Function newTLSServer

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

Source from the content-addressed store, hash-verified

68}
69
70func newTLSServer(t *testing.T) *cstServer {
71 var s cstServer
72 s.Server = httptest.NewTLSServer(cstHandler{t})
73 s.Server.URL += cstRequestURI
74 s.URL = makeWsProto(s.Server.URL)
75 return &s
76}
77
78func (t cstHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
79 if r.URL.Path != cstPath {

Callers 3

TestDialTLSFunction · 0.85

Calls 1

makeWsProtoFunction · 0.85

Tested by

no test coverage detected