mocks

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 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 MockExecutor

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

MockExecutor is a mock of Executor interface.

func NewMockExecutor

func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor

NewMockExecutor creates a new mock instance.

func (*MockExecutor) EXPECT

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

func (*MockExecutor) Exec

func (m *MockExecutor) Exec(arg0 string, arg1 sql.Encoder, arg2 sql.Decoder) (int, error)

Exec mocks base method.

func (*MockExecutor) QueryCache

func (m *MockExecutor) QueryCache() sql.QueryCache

QueryCache mocks base method.

func (*MockExecutor) WithTx

func (m *MockExecutor) WithTx(arg0 context.Context, arg1 func(*sql.Tx) error) error

WithTx mocks base method.

type MockExecutorExecCall

type MockExecutorExecCall struct {
	*gomock.Call
}

MockExecutorExecCall wrap *gomock.Call

func (*MockExecutorExecCall) Do

Do rewrite *gomock.Call.Do

func (*MockExecutorExecCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExecutorExecCall) Return

func (c *MockExecutorExecCall) Return(arg0 int, arg1 error) *MockExecutorExecCall

Return rewrite *gomock.Call.Return

type MockExecutorMockRecorder

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

MockExecutorMockRecorder is the mock recorder for MockExecutor.

func (*MockExecutorMockRecorder) Exec

func (mr *MockExecutorMockRecorder) Exec(arg0, arg1, arg2 any) *MockExecutorExecCall

Exec indicates an expected call of Exec.

func (*MockExecutorMockRecorder) QueryCache

QueryCache indicates an expected call of QueryCache.

func (*MockExecutorMockRecorder) WithTx

func (mr *MockExecutorMockRecorder) WithTx(arg0, arg1 any) *MockExecutorWithTxCall

WithTx indicates an expected call of WithTx.

type MockExecutorQueryCacheCall

type MockExecutorQueryCacheCall struct {
	*gomock.Call
}

MockExecutorQueryCacheCall wrap *gomock.Call

func (*MockExecutorQueryCacheCall) Do

Do rewrite *gomock.Call.Do

func (*MockExecutorQueryCacheCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExecutorQueryCacheCall) Return

Return rewrite *gomock.Call.Return

type MockExecutorWithTxCall

type MockExecutorWithTxCall struct {
	*gomock.Call
}

MockExecutorWithTxCall wrap *gomock.Call

func (*MockExecutorWithTxCall) Do

Do rewrite *gomock.Call.Do

func (*MockExecutorWithTxCall) DoAndReturn

func (c *MockExecutorWithTxCall) DoAndReturn(f func(context.Context, func(*sql.Tx) error) error) *MockExecutorWithTxCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExecutorWithTxCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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