Read implements net.Conn by reading from the buffered input.
(b []byte)
| 849 | |
| 850 | // Read implements net.Conn by reading from the buffered input. |
| 851 | func (c *testConn) Read(b []byte) (int, error) { |
| 852 | c.Lock() |
| 853 | defer c.Unlock() |
| 854 | |
| 855 | return c.r.Read(b) //nolint:wrapcheck // This must not be wrapped |
| 856 | } |
| 857 | |
| 858 | // Write implements net.Conn by appending to the buffered output. |
| 859 | func (c *testConn) Write(b []byte) (int, error) { |