Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockTestSession
- func (m *MockTestSession) Close()
- func (m *MockTestSession) CloseConn(arg0 int)
- func (m *MockTestSession) Conn() net.Conn
- func (m *MockTestSession) EXPECT() *MockTestSessionMockRecorder
- func (m *MockTestSession) EndPoint() getty.EndPoint
- func (m *MockTestSession) GetActive() time.Time
- func (m *MockTestSession) GetAttribute(arg0 interface{}) interface{}
- func (m *MockTestSession) ID() uint32
- func (m *MockTestSession) IncReadPkgNum()
- func (m *MockTestSession) IncWritePkgNum()
- func (m *MockTestSession) IsClosed() bool
- func (m *MockTestSession) LocalAddr() string
- func (m *MockTestSession) ReadTimeout() time.Duration
- func (m *MockTestSession) RemoteAddr() string
- func (m *MockTestSession) RemoveAttribute(arg0 interface{})
- func (m *MockTestSession) Reset()
- func (m *MockTestSession) Send(arg0 interface{}) (int, error)
- func (m *MockTestSession) SetAttribute(arg0, arg1 interface{})
- func (m *MockTestSession) SetCompressType(arg0 getty.CompressType)
- func (m *MockTestSession) SetCronPeriod(arg0 int)
- func (m *MockTestSession) SetEventListener(arg0 getty.EventListener)
- func (m *MockTestSession) SetMaxMsgLen(arg0 int)
- func (m *MockTestSession) SetName(arg0 string)
- func (m *MockTestSession) SetPkgHandler(arg0 getty.ReadWriter)
- func (m *MockTestSession) SetReadTimeout(arg0 time.Duration)
- func (m *MockTestSession) SetReader(arg0 getty.Reader)
- func (m *MockTestSession) SetSession(arg0 getty.Session)
- func (m *MockTestSession) SetWaitTime(arg0 time.Duration)
- func (m *MockTestSession) SetWriteTimeout(arg0 time.Duration)
- func (m *MockTestSession) SetWriter(arg0 getty.Writer)
- func (m *MockTestSession) Stat() string
- func (m *MockTestSession) UpdateActive()
- func (m *MockTestSession) WriteBytes(arg0 []byte) (int, error)
- func (m *MockTestSession) WriteBytesArray(arg0 ...[]byte) (int, error)
- func (m *MockTestSession) WritePkg(pkg interface{}, timeout time.Duration) (int, int, error)
- func (m *MockTestSession) WriteTimeout() time.Duration
- type MockTestSessionMockRecorder
- func (mr *MockTestSessionMockRecorder) Close() *gomock.Call
- func (mr *MockTestSessionMockRecorder) CloseConn(arg0 interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) Conn() *gomock.Call
- func (mr *MockTestSessionMockRecorder) EndPoint() *gomock.Call
- func (mr *MockTestSessionMockRecorder) GetActive() *gomock.Call
- func (mr *MockTestSessionMockRecorder) GetAttribute(arg0 interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) ID() *gomock.Call
- func (mr *MockTestSessionMockRecorder) IncReadPkgNum() *gomock.Call
- func (mr *MockTestSessionMockRecorder) IncWritePkgNum() *gomock.Call
- func (mr *MockTestSessionMockRecorder) IsClosed() *gomock.Call
- func (mr *MockTestSessionMockRecorder) LocalAddr() *gomock.Call
- func (mr *MockTestSessionMockRecorder) ReadTimeout() *gomock.Call
- func (mr *MockTestSessionMockRecorder) RemoteAddr() *gomock.Call
- func (mr *MockTestSessionMockRecorder) RemoveAttribute(arg0 interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) Reset() *gomock.Call
- func (mr *MockTestSessionMockRecorder) Send(arg0 interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) SetAttribute(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) SetCompressType(arg0 interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) SetCronPeriod(arg0 interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) SetEventListener(arg0 interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) SetMaxMsgLen(arg0 interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) SetName(arg0 interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) SetPkgHandler(arg0 interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) SetReadTimeout(arg0 interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) SetReader(arg0 interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) SetSession(arg0 interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) SetWaitTime(arg0 interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) SetWriteTimeout(arg0 interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) SetWriter(arg0 interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) Stat() *gomock.Call
- func (mr *MockTestSessionMockRecorder) UpdateActive() *gomock.Call
- func (mr *MockTestSessionMockRecorder) WriteBytes(arg0 interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) WriteBytesArray(arg0 ...interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) WritePkg(pkg, timeout interface{}) *gomock.Call
- func (mr *MockTestSessionMockRecorder) WriteTimeout() *gomock.Call
- type TestSession
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTestSession ¶
type MockTestSession struct {
// contains filtered or unexported fields
}
MockTestSession is a mock of TestSession interface.
func NewMockTestSession ¶
func NewMockTestSession(ctrl *gomock.Controller) *MockTestSession
NewMockTestSession creates a new mock instance.
func (*MockTestSession) CloseConn ¶
func (m *MockTestSession) CloseConn(arg0 int)
CloseConn mocks base method.
func (*MockTestSession) EXPECT ¶
func (m *MockTestSession) EXPECT() *MockTestSessionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTestSession) EndPoint ¶
func (m *MockTestSession) EndPoint() getty.EndPoint
EndPoint mocks base method.
func (*MockTestSession) GetActive ¶
func (m *MockTestSession) GetActive() time.Time
GetActive mocks base method.
func (*MockTestSession) GetAttribute ¶
func (m *MockTestSession) GetAttribute(arg0 interface{}) interface{}
GetAttribute mocks base method.
func (*MockTestSession) IncReadPkgNum ¶
func (m *MockTestSession) IncReadPkgNum()
IncReadPkgNum mocks base method.
func (*MockTestSession) IncWritePkgNum ¶
func (m *MockTestSession) IncWritePkgNum()
IncWritePkgNum mocks base method.
func (*MockTestSession) IsClosed ¶
func (m *MockTestSession) IsClosed() bool
IsClosed mocks base method.
func (*MockTestSession) LocalAddr ¶
func (m *MockTestSession) LocalAddr() string
LocalAddr mocks base method.
func (*MockTestSession) ReadTimeout ¶
func (m *MockTestSession) ReadTimeout() time.Duration
ReadTimeout mocks base method.
func (*MockTestSession) RemoteAddr ¶
func (m *MockTestSession) RemoteAddr() string
RemoteAddr mocks base method.
func (*MockTestSession) RemoveAttribute ¶
func (m *MockTestSession) RemoveAttribute(arg0 interface{})
RemoveAttribute mocks base method.
func (*MockTestSession) Send ¶
func (m *MockTestSession) Send(arg0 interface{}) (int, error)
Send mocks base method.
func (*MockTestSession) SetAttribute ¶
func (m *MockTestSession) SetAttribute(arg0, arg1 interface{})
SetAttribute mocks base method.
func (*MockTestSession) SetCompressType ¶
func (m *MockTestSession) SetCompressType(arg0 getty.CompressType)
SetCompressType mocks base method.
func (*MockTestSession) SetCronPeriod ¶
func (m *MockTestSession) SetCronPeriod(arg0 int)
SetCronPeriod mocks base method.
func (*MockTestSession) SetEventListener ¶
func (m *MockTestSession) SetEventListener(arg0 getty.EventListener)
SetEventListener mocks base method.
func (*MockTestSession) SetMaxMsgLen ¶
func (m *MockTestSession) SetMaxMsgLen(arg0 int)
SetMaxMsgLen mocks base method.
func (*MockTestSession) SetName ¶
func (m *MockTestSession) SetName(arg0 string)
SetName mocks base method.
func (*MockTestSession) SetPkgHandler ¶
func (m *MockTestSession) SetPkgHandler(arg0 getty.ReadWriter)
SetPkgHandler mocks base method.
func (*MockTestSession) SetReadTimeout ¶
func (m *MockTestSession) SetReadTimeout(arg0 time.Duration)
SetReadTimeout mocks base method.
func (*MockTestSession) SetReader ¶
func (m *MockTestSession) SetReader(arg0 getty.Reader)
SetReader mocks base method.
func (*MockTestSession) SetSession ¶
func (m *MockTestSession) SetSession(arg0 getty.Session)
SetSession mocks base method.
func (*MockTestSession) SetWaitTime ¶
func (m *MockTestSession) SetWaitTime(arg0 time.Duration)
SetWaitTime mocks base method.
func (*MockTestSession) SetWriteTimeout ¶
func (m *MockTestSession) SetWriteTimeout(arg0 time.Duration)
SetWriteTimeout mocks base method.
func (*MockTestSession) SetWriter ¶
func (m *MockTestSession) SetWriter(arg0 getty.Writer)
SetWriter mocks base method.
func (*MockTestSession) UpdateActive ¶
func (m *MockTestSession) UpdateActive()
UpdateActive mocks base method.
func (*MockTestSession) WriteBytes ¶
func (m *MockTestSession) WriteBytes(arg0 []byte) (int, error)
WriteBytes mocks base method.
func (*MockTestSession) WriteBytesArray ¶
func (m *MockTestSession) WriteBytesArray(arg0 ...[]byte) (int, error)
WriteBytesArray mocks base method.
func (*MockTestSession) WriteTimeout ¶
func (m *MockTestSession) WriteTimeout() time.Duration
WriteTimeout mocks base method.
type MockTestSessionMockRecorder ¶
type MockTestSessionMockRecorder struct {
// contains filtered or unexported fields
}
MockTestSessionMockRecorder is the mock recorder for MockTestSession.
func (*MockTestSessionMockRecorder) Close ¶
func (mr *MockTestSessionMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockTestSessionMockRecorder) CloseConn ¶
func (mr *MockTestSessionMockRecorder) CloseConn(arg0 interface{}) *gomock.Call
CloseConn indicates an expected call of CloseConn.
func (*MockTestSessionMockRecorder) Conn ¶
func (mr *MockTestSessionMockRecorder) Conn() *gomock.Call
Conn indicates an expected call of Conn.
func (*MockTestSessionMockRecorder) EndPoint ¶
func (mr *MockTestSessionMockRecorder) EndPoint() *gomock.Call
EndPoint indicates an expected call of EndPoint.
func (*MockTestSessionMockRecorder) GetActive ¶
func (mr *MockTestSessionMockRecorder) GetActive() *gomock.Call
GetActive indicates an expected call of GetActive.
func (*MockTestSessionMockRecorder) GetAttribute ¶
func (mr *MockTestSessionMockRecorder) GetAttribute(arg0 interface{}) *gomock.Call
GetAttribute indicates an expected call of GetAttribute.
func (*MockTestSessionMockRecorder) ID ¶
func (mr *MockTestSessionMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockTestSessionMockRecorder) IncReadPkgNum ¶
func (mr *MockTestSessionMockRecorder) IncReadPkgNum() *gomock.Call
IncReadPkgNum indicates an expected call of IncReadPkgNum.
func (*MockTestSessionMockRecorder) IncWritePkgNum ¶
func (mr *MockTestSessionMockRecorder) IncWritePkgNum() *gomock.Call
IncWritePkgNum indicates an expected call of IncWritePkgNum.
func (*MockTestSessionMockRecorder) IsClosed ¶
func (mr *MockTestSessionMockRecorder) IsClosed() *gomock.Call
IsClosed indicates an expected call of IsClosed.
func (*MockTestSessionMockRecorder) LocalAddr ¶
func (mr *MockTestSessionMockRecorder) LocalAddr() *gomock.Call
LocalAddr indicates an expected call of LocalAddr.
func (*MockTestSessionMockRecorder) ReadTimeout ¶
func (mr *MockTestSessionMockRecorder) ReadTimeout() *gomock.Call
ReadTimeout indicates an expected call of ReadTimeout.
func (*MockTestSessionMockRecorder) RemoteAddr ¶
func (mr *MockTestSessionMockRecorder) RemoteAddr() *gomock.Call
RemoteAddr indicates an expected call of RemoteAddr.
func (*MockTestSessionMockRecorder) RemoveAttribute ¶
func (mr *MockTestSessionMockRecorder) RemoveAttribute(arg0 interface{}) *gomock.Call
RemoveAttribute indicates an expected call of RemoveAttribute.
func (*MockTestSessionMockRecorder) Reset ¶
func (mr *MockTestSessionMockRecorder) Reset() *gomock.Call
Reset indicates an expected call of Reset.
func (*MockTestSessionMockRecorder) Send ¶
func (mr *MockTestSessionMockRecorder) Send(arg0 interface{}) *gomock.Call
Send indicates an expected call of Send.
func (*MockTestSessionMockRecorder) SetAttribute ¶
func (mr *MockTestSessionMockRecorder) SetAttribute(arg0, arg1 interface{}) *gomock.Call
SetAttribute indicates an expected call of SetAttribute.
func (*MockTestSessionMockRecorder) SetCompressType ¶
func (mr *MockTestSessionMockRecorder) SetCompressType(arg0 interface{}) *gomock.Call
SetCompressType indicates an expected call of SetCompressType.
func (*MockTestSessionMockRecorder) SetCronPeriod ¶
func (mr *MockTestSessionMockRecorder) SetCronPeriod(arg0 interface{}) *gomock.Call
SetCronPeriod indicates an expected call of SetCronPeriod.
func (*MockTestSessionMockRecorder) SetEventListener ¶
func (mr *MockTestSessionMockRecorder) SetEventListener(arg0 interface{}) *gomock.Call
SetEventListener indicates an expected call of SetEventListener.
func (*MockTestSessionMockRecorder) SetMaxMsgLen ¶
func (mr *MockTestSessionMockRecorder) SetMaxMsgLen(arg0 interface{}) *gomock.Call
SetMaxMsgLen indicates an expected call of SetMaxMsgLen.
func (*MockTestSessionMockRecorder) SetName ¶
func (mr *MockTestSessionMockRecorder) SetName(arg0 interface{}) *gomock.Call
SetName indicates an expected call of SetName.
func (*MockTestSessionMockRecorder) SetPkgHandler ¶
func (mr *MockTestSessionMockRecorder) SetPkgHandler(arg0 interface{}) *gomock.Call
SetPkgHandler indicates an expected call of SetPkgHandler.
func (*MockTestSessionMockRecorder) SetReadTimeout ¶
func (mr *MockTestSessionMockRecorder) SetReadTimeout(arg0 interface{}) *gomock.Call
SetReadTimeout indicates an expected call of SetReadTimeout.
func (*MockTestSessionMockRecorder) SetReader ¶
func (mr *MockTestSessionMockRecorder) SetReader(arg0 interface{}) *gomock.Call
SetReader indicates an expected call of SetReader.
func (*MockTestSessionMockRecorder) SetSession ¶
func (mr *MockTestSessionMockRecorder) SetSession(arg0 interface{}) *gomock.Call
SetSession indicates an expected call of SetSession.
func (*MockTestSessionMockRecorder) SetWaitTime ¶
func (mr *MockTestSessionMockRecorder) SetWaitTime(arg0 interface{}) *gomock.Call
SetWaitTime indicates an expected call of SetWaitTime.
func (*MockTestSessionMockRecorder) SetWriteTimeout ¶
func (mr *MockTestSessionMockRecorder) SetWriteTimeout(arg0 interface{}) *gomock.Call
SetWriteTimeout indicates an expected call of SetWriteTimeout.
func (*MockTestSessionMockRecorder) SetWriter ¶
func (mr *MockTestSessionMockRecorder) SetWriter(arg0 interface{}) *gomock.Call
SetWriter indicates an expected call of SetWriter.
func (*MockTestSessionMockRecorder) Stat ¶
func (mr *MockTestSessionMockRecorder) Stat() *gomock.Call
Stat indicates an expected call of Stat.
func (*MockTestSessionMockRecorder) UpdateActive ¶
func (mr *MockTestSessionMockRecorder) UpdateActive() *gomock.Call
UpdateActive indicates an expected call of UpdateActive.
func (*MockTestSessionMockRecorder) WriteBytes ¶
func (mr *MockTestSessionMockRecorder) WriteBytes(arg0 interface{}) *gomock.Call
WriteBytes indicates an expected call of WriteBytes.
func (*MockTestSessionMockRecorder) WriteBytesArray ¶
func (mr *MockTestSessionMockRecorder) WriteBytesArray(arg0 ...interface{}) *gomock.Call
WriteBytesArray indicates an expected call of WriteBytesArray.
func (*MockTestSessionMockRecorder) WritePkg ¶
func (mr *MockTestSessionMockRecorder) WritePkg(pkg, timeout interface{}) *gomock.Call
WritePkg indicates an expected call of WritePkg.
func (*MockTestSessionMockRecorder) WriteTimeout ¶
func (mr *MockTestSessionMockRecorder) WriteTimeout() *gomock.Call
WriteTimeout indicates an expected call of WriteTimeout.