mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

func (m *MockConn) Begin() (driver.Tx, error)

Begin mocks base method

func (*MockConn) Close

func (m *MockConn) Close() error

Close mocks base method

func (*MockConn) EXPECT

func (m *MockConn) EXPECT() *MockConnMockRecorder

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

func (*MockConn) Prepare

func (m *MockConn) Prepare(arg0 string) (driver.Stmt, error)

Prepare mocks base method

type MockConnBeginTx

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

MockConnBeginTx is a mock of ConnBeginTx interface

func NewMockConnBeginTx

func NewMockConnBeginTx(ctrl *gomock.Controller) *MockConnBeginTx

NewMockConnBeginTx creates a new mock instance

func (*MockConnBeginTx) BeginTx

func (m *MockConnBeginTx) BeginTx(arg0 context.Context, arg1 driver.TxOptions) (driver.Tx, error)

BeginTx mocks base method

func (*MockConnBeginTx) EXPECT

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

type MockConnBeginTxMockRecorder

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

MockConnBeginTxMockRecorder is the mock recorder for MockConnBeginTx

func (*MockConnBeginTxMockRecorder) BeginTx

func (mr *MockConnBeginTxMockRecorder) BeginTx(arg0, arg1 interface{}) *gomock.Call

BeginTx indicates an expected call of BeginTx

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

func (mr *MockConnMockRecorder) Prepare(arg0 interface{}) *gomock.Call

Prepare indicates an expected call of Prepare

type MockDriver

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

MockDriver is a mock of Driver interface

func NewMockDriver

func NewMockDriver(ctrl *gomock.Controller) *MockDriver

NewMockDriver creates a new mock instance

func (*MockDriver) EXPECT

func (m *MockDriver) EXPECT() *MockDriverMockRecorder

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

func (*MockDriver) Open

func (m *MockDriver) Open(arg0 string) (driver.Conn, error)

Open mocks base method

type MockDriverMockRecorder

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

MockDriverMockRecorder is the mock recorder for MockDriver

func (*MockDriverMockRecorder) Open

func (mr *MockDriverMockRecorder) Open(arg0 interface{}) *gomock.Call

Open indicates an expected call of Open

type MockExecerContext

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

MockExecerContext is a mock of ExecerContext interface

func NewMockExecerContext

func NewMockExecerContext(ctrl *gomock.Controller) *MockExecerContext

NewMockExecerContext creates a new mock instance

func (*MockExecerContext) EXPECT

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

func (*MockExecerContext) ExecContext

func (m *MockExecerContext) ExecContext(arg0 context.Context, arg1 string, arg2 []driver.NamedValue) (driver.Result, error)

ExecContext mocks base method

type MockExecerContextMockRecorder

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

MockExecerContextMockRecorder is the mock recorder for MockExecerContext

func (*MockExecerContextMockRecorder) ExecContext

func (mr *MockExecerContextMockRecorder) ExecContext(arg0, arg1, arg2 interface{}) *gomock.Call

ExecContext indicates an expected call of ExecContext

type MockQueryerContext

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

MockQueryerContext is a mock of QueryerContext interface

func NewMockQueryerContext

func NewMockQueryerContext(ctrl *gomock.Controller) *MockQueryerContext

NewMockQueryerContext creates a new mock instance

func (*MockQueryerContext) EXPECT

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

func (*MockQueryerContext) QueryContext

func (m *MockQueryerContext) QueryContext(arg0 context.Context, arg1 string, arg2 []driver.NamedValue) (driver.Rows, error)

QueryContext mocks base method

type MockQueryerContextMockRecorder

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

MockQueryerContextMockRecorder is the mock recorder for MockQueryerContext

func (*MockQueryerContextMockRecorder) QueryContext

func (mr *MockQueryerContextMockRecorder) QueryContext(arg0, arg1, arg2 interface{}) *gomock.Call

QueryContext indicates an expected call of QueryContext

type MockResult

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

MockResult is a mock of Result interface

func NewMockResult

func NewMockResult(ctrl *gomock.Controller) *MockResult

NewMockResult creates a new mock instance

func (*MockResult) EXPECT

func (m *MockResult) EXPECT() *MockResultMockRecorder

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

func (*MockResult) LastInsertId

func (m *MockResult) LastInsertId() (int64, error)

LastInsertId mocks base method

func (*MockResult) RowsAffected

func (m *MockResult) RowsAffected() (int64, error)

RowsAffected mocks base method

type MockResultMockRecorder

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

MockResultMockRecorder is the mock recorder for MockResult

func (*MockResultMockRecorder) LastInsertId

func (mr *MockResultMockRecorder) LastInsertId() *gomock.Call

LastInsertId indicates an expected call of LastInsertId

func (*MockResultMockRecorder) RowsAffected

func (mr *MockResultMockRecorder) RowsAffected() *gomock.Call

RowsAffected indicates an expected call of RowsAffected

type MockRows

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

MockRows is a mock of Rows interface

func NewMockRows

func NewMockRows(ctrl *gomock.Controller) *MockRows

NewMockRows creates a new mock instance

func (*MockRows) Close

func (m *MockRows) Close() error

Close mocks base method

func (*MockRows) Columns

func (m *MockRows) Columns() []string

Columns mocks base method

func (*MockRows) EXPECT

func (m *MockRows) EXPECT() *MockRowsMockRecorder

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

func (*MockRows) Next

func (m *MockRows) Next(arg0 []driver.Value) error

Next mocks base method

type MockRowsMockRecorder

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

MockRowsMockRecorder is the mock recorder for MockRows

func (*MockRowsMockRecorder) Close

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

Close indicates an expected call of Close

func (*MockRowsMockRecorder) Columns

func (mr *MockRowsMockRecorder) Columns() *gomock.Call

Columns indicates an expected call of Columns

func (*MockRowsMockRecorder) Next

func (mr *MockRowsMockRecorder) Next(arg0 interface{}) *gomock.Call

Next indicates an expected call of Next

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 []driver.Value) (driver.Result, error)

Exec mocks base method

func (*MockStmt) NumInput

func (m *MockStmt) NumInput() int

NumInput mocks base method

func (*MockStmt) Query

func (m *MockStmt) Query(arg0 []driver.Value) (driver.Rows, error)

Query 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{}) *gomock.Call

Exec indicates an expected call of Exec

func (*MockStmtMockRecorder) NumInput

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

NumInput indicates an expected call of NumInput

func (*MockStmtMockRecorder) Query

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

Query indicates an expected call of Query

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

func (m *MockTx) Rollback() error

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

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

Rollback indicates an expected call of Rollback

Jump to

Keyboard shortcuts

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