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

Function TestHostPortNoPort

client_test.go:22–32  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

20}
21
22func TestHostPortNoPort(t *testing.T) {
23 for _, tt := range hostPortNoPortTests {
24 hostPort, hostNoPort := hostPortNoPort(tt.u)
25 if hostPort != tt.hostPort {
26 t.Errorf("hostPortNoPort(%v) returned hostPort %q, want %q", tt.u, hostPort, tt.hostPort)
27 }
28 if hostNoPort != tt.hostNoPort {
29 t.Errorf("hostPortNoPort(%v) returned hostNoPort %q, want %q", tt.u, hostNoPort, tt.hostNoPort)
30 }
31 }
32}

Callers

nothing calls this directly

Calls 1

hostPortNoPortFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…