Documentation ¶
Overview ¶
Package mock_redis is a generated GoMock package.
Package mock_redis is a generated GoMock package.
Index ¶
- type MockConn
- func (m *MockConn) Close() error
- func (m *MockConn) Do(arg0 string, arg1 ...interface{}) (interface{}, error)
- func (m *MockConn) EXPECT() *MockConnMockRecorder
- func (m *MockConn) Err() error
- func (m *MockConn) Flush() error
- func (m *MockConn) Receive() (interface{}, error)
- func (m *MockConn) Send(arg0 string, arg1 ...interface{}) error
- type MockConnMockRecorder
- func (mr *MockConnMockRecorder) Close() *gomock.Call
- func (mr *MockConnMockRecorder) Do(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) Err() *gomock.Call
- func (mr *MockConnMockRecorder) Flush() *gomock.Call
- func (mr *MockConnMockRecorder) Receive() *gomock.Call
- func (mr *MockConnMockRecorder) Send(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- type MockPool
- type MockPoolMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConn ¶
type MockConn struct {
// contains filtered or unexported fields
}
MockConn is a mock of Conn interface
func NewMockConn ¶
func NewMockConn(ctrl *gomock.Controller) *MockConn
NewMockConn creates a new mock instance
func (*MockConn) EXPECT ¶
func (m *MockConn) EXPECT() *MockConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockConnMockRecorder ¶
type MockConnMockRecorder struct {
// contains filtered or unexported fields
}
MockConnMockRecorder is the mock recorder for MockConn
func (*MockConnMockRecorder) Close ¶
func (mr *MockConnMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockConnMockRecorder) Do ¶
func (mr *MockConnMockRecorder) Do(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Do indicates an expected call of Do
func (*MockConnMockRecorder) Err ¶
func (mr *MockConnMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err
func (*MockConnMockRecorder) Flush ¶
func (mr *MockConnMockRecorder) Flush() *gomock.Call
Flush indicates an expected call of Flush
func (*MockConnMockRecorder) Receive ¶
func (mr *MockConnMockRecorder) Receive() *gomock.Call
Receive indicates an expected call of Receive
func (*MockConnMockRecorder) Send ¶
func (mr *MockConnMockRecorder) Send(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Send indicates an expected call of Send
type MockPool ¶
type MockPool struct {
// contains filtered or unexported fields
}
MockPool is a mock of Pool interface
func NewMockPool ¶
func NewMockPool(ctrl *gomock.Controller) *MockPool
NewMockPool creates a new mock instance
func (*MockPool) EXPECT ¶
func (m *MockPool) EXPECT() *MockPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockPoolMockRecorder ¶
type MockPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockPoolMockRecorder is the mock recorder for MockPool
func (*MockPoolMockRecorder) GetContext ¶
func (mr *MockPoolMockRecorder) GetContext(arg0 interface{}) *gomock.Call
GetContext indicates an expected call of GetContext