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

Function newTestConn

conn_test.go:53–55  ·  view source on GitHub ↗

newTestConn creates a connnection backed by a fake network connection using default values for buffering.

(r io.Reader, w io.Writer, isServer bool)

Source from the content-addressed store, hash-verified

51// newTestConn creates a connnection backed by a fake network connection using
52// default values for buffering.
53func newTestConn(r io.Reader, w io.Writer, isServer bool) *Conn {
54 return newConn(fakeNetConn{Reader: r, Writer: w}, isServer, 1024, 1024, nil, nil, nil)
55}
56
57func TestFraming(t *testing.T) {
58 frameSizes := []int{

Callers 15

TestFramingFunction · 0.85
TestControlFunction · 0.85
TestWriteBufferPoolFunction · 0.85
TestWriteBufferPoolSyncFunction · 0.85
TestEOFWithinFrameFunction · 0.85
TestEOFBeforeFinalFrameFunction · 0.85
TestReadLimitFunction · 0.85
TestAddrsFunction · 0.85
TestConcurrentWritePanicFunction · 0.85

Calls 1

newConnFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…