(p []byte)
| 1814 | } |
| 1815 | |
| 1816 | func (mc *mockConn) Write(p []byte) (int, error) { |
| 1817 | if mc.failures < mc.temporaryFailures { |
| 1818 | mc.failures++ |
| 1819 | return 0, &net.OpError{Op: "write", Net: "tcp", Err: errors.New("i/o timeout")} |
| 1820 | } |
| 1821 | mc.data = append(mc.data, p...) |
| 1822 | return len(p), nil |
| 1823 | } |
| 1824 | |
| 1825 | func (mc *mockConn) SetWriteDeadline(t time.Time) error { return nil } |
| 1826 | func (mc *mockConn) Read(b []byte) (int, error) { return 0, nil } |
no outgoing calls
no test coverage detected