Implements the Writer interface.
(p []byte)
| 50 | |
| 51 | // Implements the Writer interface. |
| 52 | func (rw *mockReadWriter) Write(p []byte) (n int, err error) { |
| 53 | defer func() { rw.sentChan <- struct{}{} }() |
| 54 | return rw.sendBuf.Write(p) |
| 55 | } |
| 56 | |
| 57 | // Hook up gocheck into go test runner |
| 58 | func Test(t *testing.T) { |
no outgoing calls
no test coverage detected