mock_sql

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mock_sql is a generated GoMock package.

Package mock_sql is a generated GoMock package.

Package mock_sql is a generated GoMock package.

Package mock_sql is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCommand

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

MockCommand is a mock of Command interface.

func NewMockCommand

func NewMockCommand(ctrl *gomock.Controller) *MockCommand

NewMockCommand creates a new mock instance.

func (*MockCommand) BeginTx

func (m *MockCommand) BeginTx(ctx context.Context, name string, opts sql0.TxOptions) (sql0.CommandTx, error)

BeginTx mocks base method.

func (*MockCommand) Close

func (m *MockCommand) Close() error

Close mocks base method.

func (*MockCommand) EXPECT

func (m *MockCommand) EXPECT() *MockCommandMockRecorder

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

func (*MockCommand) Exec

func (m *MockCommand) Exec(ctx context.Context, name, query string, args ...any) (sql.Result, error)

Exec mocks base method.

func (*MockCommand) Get

func (m *MockCommand) Get(ctx context.Context, name, query string, dest any, args ...any) error

Get mocks base method.

func (*MockCommand) In

func (m *MockCommand) In(query string, args ...any) (string, []any, error)

In mocks base method.

func (*MockCommand) NamedExec

func (m *MockCommand) NamedExec(ctx context.Context, name, query string, args any) (sql.Result, error)

NamedExec mocks base method.

func (*MockCommand) NamedQuery

func (m *MockCommand) NamedQuery(ctx context.Context, name, query string, arg any) (*sqlx.Rows, error)

NamedQuery mocks base method.

func (*MockCommand) Ping

func (m *MockCommand) Ping(ctx context.Context) error

Ping mocks base method.

func (*MockCommand) Prepare

func (m *MockCommand) Prepare(ctx context.Context, name, query string) (sql0.CommandStmt, error)

Prepare mocks base method.

func (*MockCommand) Query

func (m *MockCommand) Query(ctx context.Context, name, query string, args ...any) (*sqlx.Rows, error)

Query mocks base method.

func (*MockCommand) QueryIn

func (m *MockCommand) QueryIn(ctx context.Context, name, query string, args ...any) (*sqlx.Rows, error)

QueryIn mocks base method.

func (*MockCommand) QueryRow

func (m *MockCommand) QueryRow(ctx context.Context, name, query string, args ...any) (*sqlx.Row, error)

QueryRow mocks base method.

func (*MockCommand) Rebind

func (m *MockCommand) Rebind(query string) string

Rebind mocks base method.

type MockCommandMockRecorder

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

MockCommandMockRecorder is the mock recorder for MockCommand.

func (*MockCommandMockRecorder) BeginTx

func (mr *MockCommandMockRecorder) BeginTx(ctx, name, opts any) *gomock.Call

BeginTx indicates an expected call of BeginTx.

func (*MockCommandMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockCommandMockRecorder) Exec

func (mr *MockCommandMockRecorder) Exec(ctx, name, query any, args ...any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockCommandMockRecorder) Get

func (mr *MockCommandMockRecorder) Get(ctx, name, query, dest any, args ...any) *gomock.Call

Get indicates an expected call of Get.

func (*MockCommandMockRecorder) In

func (mr *MockCommandMockRecorder) In(query any, args ...any) *gomock.Call

In indicates an expected call of In.

func (*MockCommandMockRecorder) NamedExec

func (mr *MockCommandMockRecorder) NamedExec(ctx, name, query, args any) *gomock.Call

NamedExec indicates an expected call of NamedExec.

func (*MockCommandMockRecorder) NamedQuery

func (mr *MockCommandMockRecorder) NamedQuery(ctx, name, query, arg any) *gomock.Call

NamedQuery indicates an expected call of NamedQuery.

func (*MockCommandMockRecorder) Ping

func (mr *MockCommandMockRecorder) Ping(ctx any) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockCommandMockRecorder) Prepare

func (mr *MockCommandMockRecorder) Prepare(ctx, name, query any) *gomock.Call

Prepare indicates an expected call of Prepare.

func (*MockCommandMockRecorder) Query

func (mr *MockCommandMockRecorder) Query(ctx, name, query any, args ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockCommandMockRecorder) QueryIn

func (mr *MockCommandMockRecorder) QueryIn(ctx, name, query any, args ...any) *gomock.Call

QueryIn indicates an expected call of QueryIn.

func (*MockCommandMockRecorder) QueryRow

func (mr *MockCommandMockRecorder) QueryRow(ctx, name, query any, args ...any) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*MockCommandMockRecorder) Rebind

func (mr *MockCommandMockRecorder) Rebind(query any) *gomock.Call

Rebind indicates an expected call of Rebind.

type MockCommandStmt

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

MockCommandStmt is a mock of CommandStmt interface.

func NewMockCommandStmt

func NewMockCommandStmt(ctrl *gomock.Controller) *MockCommandStmt

NewMockCommandStmt creates a new mock instance.

func (*MockCommandStmt) Close

func (m *MockCommandStmt) Close() error

Close mocks base method.

func (*MockCommandStmt) EXPECT

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

func (*MockCommandStmt) Exec

func (m *MockCommandStmt) Exec(name string, args ...any) (sql.Result, error)

Exec mocks base method.

func (*MockCommandStmt) Get

func (m *MockCommandStmt) Get(name string, dest any, args ...any) error

Get mocks base method.

func (*MockCommandStmt) Query

func (m *MockCommandStmt) Query(name string, args ...any) (*sqlx.Rows, error)

Query mocks base method.

func (*MockCommandStmt) QueryRow

func (m *MockCommandStmt) QueryRow(name string, args ...any) (*sqlx.Row, error)

QueryRow mocks base method.

func (*MockCommandStmt) Select

func (m *MockCommandStmt) Select(name string, dest any, args ...any) error

Select mocks base method.

type MockCommandStmtMockRecorder

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

MockCommandStmtMockRecorder is the mock recorder for MockCommandStmt.

func (*MockCommandStmtMockRecorder) Close

Close indicates an expected call of Close.

func (*MockCommandStmtMockRecorder) Exec

func (mr *MockCommandStmtMockRecorder) Exec(name any, args ...any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockCommandStmtMockRecorder) Get

func (mr *MockCommandStmtMockRecorder) Get(name, dest any, args ...any) *gomock.Call

Get indicates an expected call of Get.

func (*MockCommandStmtMockRecorder) Query

func (mr *MockCommandStmtMockRecorder) Query(name any, args ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockCommandStmtMockRecorder) QueryRow

func (mr *MockCommandStmtMockRecorder) QueryRow(name any, args ...any) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*MockCommandStmtMockRecorder) Select

func (mr *MockCommandStmtMockRecorder) Select(name, dest any, args ...any) *gomock.Call

Select indicates an expected call of Select.

type MockCommandTx

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

MockCommandTx is a mock of CommandTx interface.

func NewMockCommandTx

func NewMockCommandTx(ctrl *gomock.Controller) *MockCommandTx

NewMockCommandTx creates a new mock instance.

func (*MockCommandTx) Commit

func (m *MockCommandTx) Commit() error

Commit mocks base method.

func (*MockCommandTx) EXPECT

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

func (*MockCommandTx) Exec

func (m *MockCommandTx) Exec(name, query string, args ...any) (sql.Result, error)

Exec mocks base method.

func (*MockCommandTx) Get

func (m *MockCommandTx) Get(name, query string, dest any, args ...any) error

Get mocks base method.

func (*MockCommandTx) NamedExec

func (m *MockCommandTx) NamedExec(name, query string, args any) (sql.Result, error)

NamedExec mocks base method.

func (*MockCommandTx) Prepare

func (m *MockCommandTx) Prepare(name, query string) (sql0.CommandStmt, error)

Prepare mocks base method.

func (*MockCommandTx) Query

func (m *MockCommandTx) Query(name, query string, args ...any) (*sqlx.Rows, error)

Query mocks base method.

func (*MockCommandTx) QueryRow

func (m *MockCommandTx) QueryRow(name, query string, args ...any) (*sqlx.Row, error)

QueryRow mocks base method.

func (*MockCommandTx) Rebind

func (m *MockCommandTx) Rebind(query string) string

Rebind mocks base method.

func (*MockCommandTx) Rollback

func (m *MockCommandTx) Rollback()

Rollback mocks base method.

func (*MockCommandTx) Select

func (m *MockCommandTx) Select(name, query string, dest any, args ...any) error

Select mocks base method.

func (*MockCommandTx) Stmt

func (m *MockCommandTx) Stmt(name string, stmt *sqlx.Stmt) sql0.CommandStmt

Stmt mocks base method.

type MockCommandTxMockRecorder

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

MockCommandTxMockRecorder is the mock recorder for MockCommandTx.

func (*MockCommandTxMockRecorder) Commit

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

Commit indicates an expected call of Commit.

func (*MockCommandTxMockRecorder) Exec

func (mr *MockCommandTxMockRecorder) Exec(name, query any, args ...any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockCommandTxMockRecorder) Get

func (mr *MockCommandTxMockRecorder) Get(name, query, dest any, args ...any) *gomock.Call

Get indicates an expected call of Get.

func (*MockCommandTxMockRecorder) NamedExec

func (mr *MockCommandTxMockRecorder) NamedExec(name, query, args any) *gomock.Call

NamedExec indicates an expected call of NamedExec.

func (*MockCommandTxMockRecorder) Prepare

func (mr *MockCommandTxMockRecorder) Prepare(name, query any) *gomock.Call

Prepare indicates an expected call of Prepare.

func (*MockCommandTxMockRecorder) Query

func (mr *MockCommandTxMockRecorder) Query(name, query any, args ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockCommandTxMockRecorder) QueryRow

func (mr *MockCommandTxMockRecorder) QueryRow(name, query any, args ...any) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*MockCommandTxMockRecorder) Rebind

func (mr *MockCommandTxMockRecorder) Rebind(query any) *gomock.Call

Rebind indicates an expected call of Rebind.

func (*MockCommandTxMockRecorder) Rollback

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

Rollback indicates an expected call of Rollback.

func (*MockCommandTxMockRecorder) Select

func (mr *MockCommandTxMockRecorder) Select(name, query, dest any, args ...any) *gomock.Call

Select indicates an expected call of Select.

func (*MockCommandTxMockRecorder) Stmt

func (mr *MockCommandTxMockRecorder) Stmt(name, stmt any) *gomock.Call

Stmt indicates an expected call of Stmt.

type MockInterface

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

MockInterface is a mock of Interface interface.

func NewMockInterface

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance.

func (*MockInterface) EXPECT

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

func (*MockInterface) Follower

func (m *MockInterface) Follower() sql.Command

Follower mocks base method.

func (*MockInterface) Leader

func (m *MockInterface) Leader() sql.Command

Leader mocks base method.

func (*MockInterface) Stop

func (m *MockInterface) Stop()

Stop mocks base method.

type MockInterfaceMockRecorder

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

MockInterfaceMockRecorder is the mock recorder for MockInterface.

func (*MockInterfaceMockRecorder) Follower

func (mr *MockInterfaceMockRecorder) Follower() *gomock.Call

Follower indicates an expected call of Follower.

func (*MockInterfaceMockRecorder) Leader

func (mr *MockInterfaceMockRecorder) Leader() *gomock.Call

Leader indicates an expected call of Leader.

func (*MockInterfaceMockRecorder) Stop

Stop indicates an expected call of Stop.

Jump to

Keyboard shortcuts

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