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

Function TestDialBadScheme

client_server_test.go:410–419  ·  client_server_test.go::TestDialBadScheme
(t *testing.T)

Source from the content-addressed store, hash-verified

408}
409
410func TestDialBadScheme(t *testing.T) {
411 s := newServer(t)
412 defer s.Close()
413
414 ws, _, err := cstDialer.Dial(s.Server.URL, nil)
415 if err == nil {
416 ws.Close()
417 t.Fatalf("Dial: nil")
418 }
419}
420
421func TestDialBadOrigin(t *testing.T) {
422 s := newServer(t)

Callers

nothing calls this directly

Calls 3

newServerFunction · 0.85
DialMethod · 0.65
CloseMethod · 0.45

Tested by

no test coverage detected