(t *testing.T)
| 68 | } |
| 69 | |
| 70 | func 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 | |
| 78 | func (t cstHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
| 79 | if r.URL.Path != cstPath { |
no test coverage detected