mock_db

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_db is a generated GoMock package.

Index

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) Close

func (m *MockDB) Close()

Close mocks base method

func (*MockDB) Connect

func (m *MockDB) Connect(arg0, arg1 string, arg2 int) error

Connect mocks base method

func (*MockDB) DropTable

func (m *MockDB) DropTable(arg0 *schema.Schema) error

DropTable mocks base method

func (*MockDB) EXPECT

func (m *MockDB) EXPECT() *MockDBMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDB) Options

func (m *MockDB) Options() options.Options

Options mocks base method

func (*MockDB) RegisterTable

func (m *MockDB) RegisterTable(s *schema.Schema, cascade, migrate bool) error

RegisterTable mocks base method

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

Jump to

Keyboard shortcuts

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