Documentation ¶
Index ¶
- func Equal(t *testing.T, expected, actual interface{})
- func NewTestLogger(tbl tbLog) app.Logger
- func Nil(t *testing.T, object interface{})
- func NotEqual(t *testing.T, expected, actual interface{})
- func NotNil(t *testing.T, object interface{})
- type FakeNetConn
- func (f FakeNetConn) Close() error
- func (f FakeNetConn) LocalAddr() net.Addr
- func (f FakeNetConn) Read(b []byte) (int, error)
- func (f FakeNetConn) RemoteAddr() net.Addr
- func (f FakeNetConn) SetDeadline(t time.Time) error
- func (f FakeNetConn) SetReadDeadline(t time.Time) error
- func (f FakeNetConn) SetWriteDeadline(t time.Time) error
- func (f FakeNetConn) Write(b []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestLogger ¶ added in v1.1.0
Types ¶
type FakeNetConn ¶
type FakeNetConn struct { ReadFunc func([]byte) (int, error) WriteFunc func([]byte) (int, error) CloseFunc func() error LocalAddrFunc func() net.Addr RemoteAddrFunc func() net.Addr SetDeadlineFunc func(time.Time) error SetReadDeadlineFunc func(time.Time) error SetWriteDeadlineFunc func(time.Time) error }
func NewFakeNetConn ¶
func NewFakeNetConn() FakeNetConn
func (FakeNetConn) Close ¶
func (f FakeNetConn) Close() error
func (FakeNetConn) LocalAddr ¶
func (f FakeNetConn) LocalAddr() net.Addr
func (FakeNetConn) RemoteAddr ¶
func (f FakeNetConn) RemoteAddr() net.Addr
func (FakeNetConn) SetDeadline ¶
func (f FakeNetConn) SetDeadline(t time.Time) error
func (FakeNetConn) SetReadDeadline ¶
func (f FakeNetConn) SetReadDeadline(t time.Time) error
func (FakeNetConn) SetWriteDeadline ¶
func (f FakeNetConn) SetWriteDeadline(t time.Time) error
Click to show internal directories.
Click to hide internal directories.