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

Function TestDeprecatedUnderlyingConn

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

Source from the content-addressed store, hash-verified

563}
564
565func TestDeprecatedUnderlyingConn(t *testing.T) {
566 var b1, b2 bytes.Buffer
567 fc := fakeNetConn{Reader: &b1, Writer: &b2}
568 c := newConn(fc, true, 1024, 1024, nil, nil, nil)
569 ul := c.UnderlyingConn()
570 if ul != fc {
571 t.Fatalf("Underlying conn is not what it should be.")
572 }
573}
574
575func TestNetConn(t *testing.T) {
576 var b1, b2 bytes.Buffer

Callers

nothing calls this directly

Calls 2

newConnFunction · 0.85
UnderlyingConnMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…