testConn mimics a net.Conn to the peer.
| 65 | |
| 66 | // testConn mimics a net.Conn to the peer. |
| 67 | type testConn struct { |
| 68 | net.Conn |
| 69 | in *bytes.Buffer |
| 70 | out *bytes.Buffer |
| 71 | } |
| 72 | |
| 73 | func (c *testConn) Read(b []byte) (n int, err error) { |
| 74 | return c.in.Read(b) |
nothing calls this directly
no outgoing calls
no test coverage detected