CountBytesConn is a net.Conn that counts bytes read and written
| 111 | |
| 112 | // CountBytesConn is a net.Conn that counts bytes read and written |
| 113 | type countBytesConn struct { |
| 114 | net.Conn |
| 115 | read, written int64 |
| 116 | } |
| 117 | |
| 118 | func (conn *countBytesConn) Read(b []byte) (int, error) { |
| 119 | n, err := conn.Conn.Read(b) |
nothing calls this directly
no outgoing calls
no test coverage detected