Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockExecutor
- type MockExecutorExecCall
- func (c *MockExecutorExecCall) Do(f func(string, sql.Encoder, sql.Decoder) (int, error)) *MockExecutorExecCall
- func (c *MockExecutorExecCall) DoAndReturn(f func(string, sql.Encoder, sql.Decoder) (int, error)) *MockExecutorExecCall
- func (c *MockExecutorExecCall) Return(arg0 int, arg1 error) *MockExecutorExecCall
- type MockExecutorMockRecorder
- type MockExecutorQueryCacheCall
- type MockExecutorWithTxCall
- func (c *MockExecutorWithTxCall) Do(f func(context.Context, func(*sql.Tx) error) error) *MockExecutorWithTxCall
- func (c *MockExecutorWithTxCall) DoAndReturn(f func(context.Context, func(*sql.Tx) error) error) *MockExecutorWithTxCall
- func (c *MockExecutorWithTxCall) Return(arg0 error) *MockExecutorWithTxCall
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 ¶
func (m *MockExecutor) EXPECT() *MockExecutorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExecutor) QueryCache ¶
func (m *MockExecutor) QueryCache() sql.QueryCache
QueryCache mocks base method.
type MockExecutorExecCall ¶
MockExecutorExecCall wrap *gomock.Call
func (*MockExecutorExecCall) Do ¶
func (c *MockExecutorExecCall) Do(f func(string, sql.Encoder, sql.Decoder) (int, error)) *MockExecutorExecCall
Do rewrite *gomock.Call.Do
func (*MockExecutorExecCall) DoAndReturn ¶
func (c *MockExecutorExecCall) DoAndReturn(f func(string, sql.Encoder, sql.Decoder) (int, error)) *MockExecutorExecCall
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 ¶
func (mr *MockExecutorMockRecorder) QueryCache() *MockExecutorQueryCacheCall
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 ¶
MockExecutorQueryCacheCall wrap *gomock.Call
func (*MockExecutorQueryCacheCall) Do ¶
func (c *MockExecutorQueryCacheCall) Do(f func() sql.QueryCache) *MockExecutorQueryCacheCall
Do rewrite *gomock.Call.Do
func (*MockExecutorQueryCacheCall) DoAndReturn ¶
func (c *MockExecutorQueryCacheCall) DoAndReturn(f func() sql.QueryCache) *MockExecutorQueryCacheCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockExecutorQueryCacheCall) Return ¶
func (c *MockExecutorQueryCacheCall) Return(arg0 sql.QueryCache) *MockExecutorQueryCacheCall
Return rewrite *gomock.Call.Return
type MockExecutorWithTxCall ¶
MockExecutorWithTxCall wrap *gomock.Call
func (*MockExecutorWithTxCall) Do ¶
func (c *MockExecutorWithTxCall) Do(f func(context.Context, func(*sql.Tx) error) error) *MockExecutorWithTxCall
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 ¶
func (c *MockExecutorWithTxCall) Return(arg0 error) *MockExecutorWithTxCall
Return rewrite *gomock.Call.Return