A synctestNetConn is one endpoint of the connection created by synctestNetPipe.
| 103 | |
| 104 | // A synctestNetConn is one endpoint of the connection created by synctestNetPipe. |
| 105 | type synctestNetConn struct { |
| 106 | // local and remote connection halves. |
| 107 | // Each half contains a buffer. |
| 108 | // Reads pull from the local buffer, and writes push to the remote buffer. |
| 109 | loc, rem *synctestNetConnHalf |
| 110 | |
| 111 | // When set, group.Wait is automatically called before reads and after writes. |
| 112 | autoWait bool |
| 113 | |
| 114 | // peer is the other endpoint. |
| 115 | peer *synctestNetConn |
| 116 | } |
| 117 | |
| 118 | // Read reads data from the connection. |
| 119 | func (c *synctestNetConn) Read(b []byte) (n int, err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected