Documentation ¶
Overview ¶
Package mock_db is a generated GoMock package.
Index ¶
- type MockDB
- func (m *MockDB) Begin() (transaction.Transaction, error)
- func (m *MockDB) BeginTx(ctx context.Context, options *transaction.TxOptions) (transaction.Transaction, error)
- func (m *MockDB) Close()
- func (m *MockDB) Connect(arg0, arg1 string, arg2 int) error
- func (m *MockDB) DropTable(arg0 *schema.Schema) error
- func (m *MockDB) EXPECT() *MockDBMockRecorder
- func (m *MockDB) Options() options.Options
- func (m *MockDB) RegisterTable(s *schema.Schema, cascade, migrate bool) error
- type MockDBMockRecorder
- func (mr *MockDBMockRecorder) Begin() *gomock.Call
- func (mr *MockDBMockRecorder) BeginTx(ctx, options interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Close() *gomock.Call
- func (mr *MockDBMockRecorder) Connect(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) DropTable(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Options() *gomock.Call
- func (mr *MockDBMockRecorder) RegisterTable(s, cascade, migrate interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDB ¶
type MockDB struct {
// contains filtered or unexported fields
}
MockDB is a mock of DB interface
func NewMockDB ¶
func NewMockDB(ctrl *gomock.Controller) *MockDB
NewMockDB creates a new mock instance
func (*MockDB) Begin ¶
func (m *MockDB) Begin() (transaction.Transaction, error)
Begin mocks base method
func (*MockDB) BeginTx ¶
func (m *MockDB) BeginTx(ctx context.Context, options *transaction.TxOptions) (transaction.Transaction, error)
BeginTx mocks base method
func (*MockDB) EXPECT ¶
func (m *MockDB) EXPECT() *MockDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockDBMockRecorder ¶
type MockDBMockRecorder struct {
// contains filtered or unexported fields
}
MockDBMockRecorder is the mock recorder for MockDB
func (*MockDBMockRecorder) Begin ¶
func (mr *MockDBMockRecorder) Begin() *gomock.Call
Begin indicates an expected call of Begin
func (*MockDBMockRecorder) BeginTx ¶
func (mr *MockDBMockRecorder) BeginTx(ctx, options interface{}) *gomock.Call
BeginTx indicates an expected call of BeginTx
func (*MockDBMockRecorder) Close ¶
func (mr *MockDBMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockDBMockRecorder) Connect ¶
func (mr *MockDBMockRecorder) Connect(arg0, arg1, arg2 interface{}) *gomock.Call
Connect indicates an expected call of Connect
func (*MockDBMockRecorder) DropTable ¶
func (mr *MockDBMockRecorder) DropTable(arg0 interface{}) *gomock.Call
DropTable indicates an expected call of DropTable
func (*MockDBMockRecorder) Options ¶
func (mr *MockDBMockRecorder) Options() *gomock.Call
Options indicates an expected call of Options
func (*MockDBMockRecorder) RegisterTable ¶
func (mr *MockDBMockRecorder) RegisterTable(s, cascade, migrate interface{}) *gomock.Call
RegisterTable indicates an expected call of RegisterTable
Click to show internal directories.
Click to hide internal directories.