test

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(t *testing.T, expected, actual interface{})

func Nil

func Nil(t *testing.T, object interface{})

func NotEqual

func NotEqual(t *testing.T, expected, actual interface{})

func NotNil

func NotNil(t *testing.T, object interface{})

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 Logger added in v1.1.0

type Logger interface {
	Output(maxdepth int, s string) error
}

func NewTestLogger added in v1.1.0

func NewTestLogger(tbl tbLog) Logger

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL