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

Method Read

conn_test.go:689–691  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

687type failingReader struct{}
688
689func (r failingReader) Read(p []byte) (int, error) {
690 return 0, io.EOF
691}
692
693func TestFailedConnectionReadPanic(t *testing.T) {
694 c := newTestConn(failingReader{}, nil, false)

Callers 1

TestReadLimitFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected