mocksql

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mocksql is a generated GoMock package.

Package mocksql is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConfig

type MockConfig struct {
	// contains filtered or unexported fields
}

MockConfig is a mock of Config interface.

func NewMockConfig

func NewMockConfig(ctrl *gomock.Controller) *MockConfig

NewMockConfig creates a new mock instance.

func (*MockConfig) DSN

func (m *MockConfig) DSN() string

DSN mocks base method.

func (*MockConfig) DriverName

func (m *MockConfig) DriverName() string

DriverName mocks base method.

func (*MockConfig) EXPECT

func (m *MockConfig) EXPECT() *MockConfigMockRecorder

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

type MockConfigMockRecorder

type MockConfigMockRecorder struct {
	// contains filtered or unexported fields
}

MockConfigMockRecorder is the mock recorder for MockConfig.

func (*MockConfigMockRecorder) DSN

func (mr *MockConfigMockRecorder) DSN() *gomock.Call

DSN indicates an expected call of DSN.

func (*MockConfigMockRecorder) DriverName

func (mr *MockConfigMockRecorder) DriverName() *gomock.Call

DriverName indicates an expected call of DriverName.

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(arg0 context.Context, arg1 *sql0.TxOptions) (sql.Tx, error)

Begin mocks base method.

func (*MockDB) Close

func (m *MockDB) Close() error

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

func (m *MockDB) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) (sql0.Result, error)

Exec mocks base method.

func (*MockDB) Ping

func (m *MockDB) Ping(arg0 context.Context) error

Ping mocks base method.

func (*MockDB) Prepare

func (m *MockDB) Prepare(arg0 context.Context, arg1 string) (sql.Stmt, error)

Prepare mocks base method.

func (*MockDB) Query

func (m *MockDB) Query(arg0 context.Context, arg1 string, arg2 ...interface{}) (*sql0.Rows, error)

Query mocks base method.

func (*MockDB) QueryRow

func (m *MockDB) QueryRow(arg0 context.Context, arg1 string, arg2 ...interface{}) *sql0.Row

QueryRow 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(arg0, arg1 interface{}) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockDBMockRecorder) Close

func (mr *MockDBMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockDBMockRecorder) Exec

func (mr *MockDBMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockDBMockRecorder) Ping

func (mr *MockDBMockRecorder) Ping(arg0 interface{}) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockDBMockRecorder) Prepare

func (mr *MockDBMockRecorder) Prepare(arg0, arg1 interface{}) *gomock.Call

Prepare indicates an expected call of Prepare.

func (*MockDBMockRecorder) Query

func (mr *MockDBMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*MockDBMockRecorder) QueryRow

func (mr *MockDBMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

QueryRow indicates an expected call of QueryRow.

type MockStmt

type MockStmt struct {
	// contains filtered or unexported fields
}

MockStmt is a mock of Stmt interface.

func NewMockStmt

func NewMockStmt(ctrl *gomock.Controller) *MockStmt

NewMockStmt creates a new mock instance.

func (*MockStmt) Close

func (m *MockStmt) Close() error

Close mocks base method.

func (*MockStmt) EXPECT

func (m *MockStmt) EXPECT() *MockStmtMockRecorder

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

func (*MockStmt) Exec

func (m *MockStmt) Exec(arg0 context.Context, arg1 ...interface{}) (sql0.Result, error)

Exec mocks base method.

func (*MockStmt) Query

func (m *MockStmt) Query(arg0 context.Context, arg1 ...interface{}) (*sql0.Rows, error)

Query mocks base method.

func (*MockStmt) QueryRow

func (m *MockStmt) QueryRow(arg0 context.Context, arg1 ...interface{}) *sql0.Row

QueryRow mocks base method.

type MockStmtMockRecorder

type MockStmtMockRecorder struct {
	// contains filtered or unexported fields
}

MockStmtMockRecorder is the mock recorder for MockStmt.

func (*MockStmtMockRecorder) Close

func (mr *MockStmtMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockStmtMockRecorder) Exec

func (mr *MockStmtMockRecorder) Exec(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockStmtMockRecorder) Query

func (mr *MockStmtMockRecorder) Query(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*MockStmtMockRecorder) QueryRow

func (mr *MockStmtMockRecorder) QueryRow(arg0 interface{}, arg1 ...interface{}) *gomock.Call

QueryRow indicates an expected call of QueryRow.

type MockTx

type MockTx struct {
	// contains filtered or unexported fields
}

MockTx is a mock of Tx interface.

func NewMockTx

func NewMockTx(ctrl *gomock.Controller) *MockTx

NewMockTx creates a new mock instance.

func (*MockTx) Commit

func (m *MockTx) Commit() error

Commit mocks base method.

func (*MockTx) EXPECT

func (m *MockTx) EXPECT() *MockTxMockRecorder

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

func (*MockTx) Exec

func (m *MockTx) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) (sql0.Result, error)

Exec mocks base method.

func (*MockTx) Prepare

func (m *MockTx) Prepare(arg0 context.Context, arg1 string) (sql.Stmt, error)

Prepare mocks base method.

func (*MockTx) Query

func (m *MockTx) Query(arg0 context.Context, arg1 string, arg2 ...interface{}) (*sql0.Rows, error)

Query mocks base method.

func (*MockTx) QueryRow

func (m *MockTx) QueryRow(arg0 context.Context, arg1 string, arg2 ...interface{}) *sql0.Row

QueryRow mocks base method.

func (*MockTx) Rollback

func (m *MockTx) Rollback() error

Rollback mocks base method.

func (*MockTx) Stmt

func (m *MockTx) Stmt(arg0 context.Context, arg1 sql.Stmt) sql.Stmt

Stmt mocks base method.

type MockTxMockRecorder

type MockTxMockRecorder struct {
	// contains filtered or unexported fields
}

MockTxMockRecorder is the mock recorder for MockTx.

func (*MockTxMockRecorder) Commit

func (mr *MockTxMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit.

func (*MockTxMockRecorder) Exec

func (mr *MockTxMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockTxMockRecorder) Prepare

func (mr *MockTxMockRecorder) Prepare(arg0, arg1 interface{}) *gomock.Call

Prepare indicates an expected call of Prepare.

func (*MockTxMockRecorder) Query

func (mr *MockTxMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*MockTxMockRecorder) QueryRow

func (mr *MockTxMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*MockTxMockRecorder) Rollback

func (mr *MockTxMockRecorder) Rollback() *gomock.Call

Rollback indicates an expected call of Rollback.

func (*MockTxMockRecorder) Stmt

func (mr *MockTxMockRecorder) Stmt(arg0, arg1 interface{}) *gomock.Call

Stmt indicates an expected call of Stmt.

Jump to

Keyboard shortcuts

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