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

Function TestAddrs

conn_test.go:555–563  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

553}
554
555func TestAddrs(t *testing.T) {
556 c := newTestConn(nil, nil, true)
557 if c.LocalAddr() != localAddr {
558 t.Errorf("LocalAddr = %v, want %v", c.LocalAddr(), localAddr)
559 }
560 if c.RemoteAddr() != remoteAddr {
561 t.Errorf("RemoteAddr = %v, want %v", c.RemoteAddr(), remoteAddr)
562 }
563}
564
565func TestDeprecatedUnderlyingConn(t *testing.T) {
566 var b1, b2 bytes.Buffer

Callers

nothing calls this directly

Calls 3

newTestConnFunction · 0.85
LocalAddrMethod · 0.45
RemoteAddrMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…