Documentation ¶
Overview ¶
Package mock_database is a generated GoMock package.
Index ¶
- type MockConn
- func (m *MockConn) Begin() (database.TxConn, error)
- func (m *MockConn) Close() error
- func (m *MockConn) EXPECT() *MockConnMockRecorder
- func (m *MockConn) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (m *MockConn) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (m *MockConn) Transaction(arg0 func(database.TxConn) error) error
- type MockConnMockRecorder
- func (mr *MockConnMockRecorder) Begin() *gomock.Call
- func (mr *MockConnMockRecorder) Close() *gomock.Call
- func (mr *MockConnMockRecorder) GetContext(ctx, dest, query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) SelectContext(ctx, dest, query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) Transaction(arg0 interface{}) *gomock.Call
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
func (*MockConn) GetContext ¶
func (m *MockConn) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
GetContext mocks base method
type MockConnMockRecorder ¶
type MockConnMockRecorder struct {
// contains filtered or unexported fields
}
MockConnMockRecorder is the mock recorder for MockConn
func (*MockConnMockRecorder) Begin ¶
func (mr *MockConnMockRecorder) Begin() *gomock.Call
Begin indicates an expected call of Begin
func (*MockConnMockRecorder) Close ¶
func (mr *MockConnMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockConnMockRecorder) GetContext ¶
func (mr *MockConnMockRecorder) GetContext(ctx, dest, query interface{}, args ...interface{}) *gomock.Call
GetContext indicates an expected call of GetContext
func (*MockConnMockRecorder) SelectContext ¶
func (mr *MockConnMockRecorder) SelectContext(ctx, dest, query interface{}, args ...interface{}) *gomock.Call
SelectContext indicates an expected call of SelectContext
func (*MockConnMockRecorder) Transaction ¶
func (mr *MockConnMockRecorder) Transaction(arg0 interface{}) *gomock.Call
Transaction indicates an expected call of Transaction
Click to show internal directories.
Click to hide internal directories.