mocks

package
v1.4.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: ./store.go

Generated by this command:

mockgen -typed -package=mocks -destination=./mocks/mocks.go -source=./store.go

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 ExecutorExecCall

type ExecutorExecCall struct {
	*gomock.Call
}

ExecutorExecCall wrap *gomock.Call

func (*ExecutorExecCall) Do

Do rewrite *gomock.Call.Do

func (*ExecutorExecCall) DoAndReturn

func (c *ExecutorExecCall) DoAndReturn(f func(string, sql.Encoder, sql.Decoder) (int, error)) *ExecutorExecCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ExecutorExecCall) Return

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

Return rewrite *gomock.Call.Return

type ExecutorWithTxCall

type ExecutorWithTxCall struct {
	*gomock.Call
}

ExecutorWithTxCall wrap *gomock.Call

func (*ExecutorWithTxCall) Do

Do rewrite *gomock.Call.Do

func (*ExecutorWithTxCall) DoAndReturn

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ExecutorWithTxCall) Return

func (c *ExecutorWithTxCall) Return(arg0 error) *ExecutorWithTxCall

Return rewrite *gomock.Call.Return

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

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

WithTx mocks base method.

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) *ExecutorExecCall

Exec indicates an expected call of Exec.

func (*MockExecutorMockRecorder) WithTx

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

WithTx indicates an expected call of WithTx.

Jump to

Keyboard shortcuts

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