Documentation ¶
Index ¶
- type MockConn
- func (m *MockConn) Close() error
- func (m MockConn) LocalAddr() net.Addr
- func (m *MockConn) Read(p []byte) (n int, err error)
- func (m MockConn) RemoteAddr() net.Addr
- func (m MockConn) SetDeadline(t time.Time) error
- func (m MockConn) SetReadDeadline(t time.Time) error
- func (m *MockConn) SetResponse(r [][]byte)
- func (m MockConn) SetWriteDeadline(t time.Time) error
- func (m *MockConn) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConn ¶
type MockConn struct { WriteBuffered []byte Closed bool MultiWrite bool // contains filtered or unexported fields }
MockConn is a simple struct implementing net.Conn that allows us to read what was written to it and feed data it will read from
func (MockConn) RemoteAddr ¶
func (*MockConn) SetResponse ¶
Click to show internal directories.
Click to hide internal directories.