testConn mimics a net.Conn to the peer.
| 67 | |
| 68 | // testConn mimics a net.Conn to the peer. |
| 69 | type testConn struct { |
| 70 | net.Conn |
| 71 | in *bytes.Buffer |
| 72 | out *bytes.Buffer |
| 73 | readLatency time.Duration |
| 74 | } |
| 75 | |
| 76 | // NewTestConn creates a new instance of testConn object. |
| 77 | func NewTestConn(in *bytes.Buffer, out *bytes.Buffer) net.Conn { |
nothing calls this directly
no outgoing calls
no test coverage detected