Documentation ¶
Index ¶
- func Assert(t *testing.T, condition bool, msg string, v ...interface{})
- func Equal(t *testing.T, expected, actual interface{})
- 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)
- type TbLog
- type TestLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) Read ¶
func (f FakeNetConn) Read(b []byte) (int, error)
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
func (FakeNetConn) Write ¶
func (f FakeNetConn) Write(b []byte) (int, error)
type TbLog ¶
type TbLog interface {
Log(...interface{})
}
Click to show internal directories.
Click to hide internal directories.