mock

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDAOFace

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

MockDAOFace is a mock of DAOFace interface.

func NewMockDAOFace

func NewMockDAOFace(ctrl *gomock.Controller) *MockDAOFace

NewMockDAOFace creates a new mock instance.

func (*MockDAOFace) Begin

func (m *MockDAOFace) Begin() (*sqlx.Tx, error)

Begin mocks base method.

func (*MockDAOFace) Create

func (m *MockDAOFace) Create(ctx context.Context, entity tabler.Tabler, opts ...interface{}) (int64, error)

Create mocks base method.

func (*MockDAOFace) EXPECT

func (m *MockDAOFace) EXPECT() *MockDAOFaceMockRecorder

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

func (*MockDAOFace) Exec

func (m *MockDAOFace) Exec(ctx context.Context, query string, tx *sqlx.Tx, args ...interface{}) (sql.Result, error)

Exec mocks base method.

func (*MockDAOFace) GetCount

func (m *MockDAOFace) GetCount(ctx context.Context, entity tabler.Tabler, condition params.Condition, opts ...interface{}) (uint64, error)

GetCount mocks base method.

func (*MockDAOFace) List

func (m *MockDAOFace) List(ctx context.Context, dest interface{}, table tabler.Tabler, condition params.Condition, opts ...interface{}) error

List mocks base method.

func (*MockDAOFace) LockTable

func (m *MockDAOFace) LockTable(ctx context.Context, tableName, mode string, tx *sqlx.Tx) error

LockTable mocks base method.

func (*MockDAOFace) Ping

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

Ping mocks base method.

func (*MockDAOFace) Update

func (m *MockDAOFace) Update(ctx context.Context, entity tabler.Tabler, condition params.Condition, operation string, opts ...interface{}) error

Update mocks base method.

func (*MockDAOFace) Upsert

func (m *MockDAOFace) Upsert(ctx context.Context, entities []tabler.Tabler, opts ...interface{}) error

Upsert mocks base method.

type MockDAOFaceMockRecorder

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

MockDAOFaceMockRecorder is the mock recorder for MockDAOFace.

func (*MockDAOFaceMockRecorder) Begin

func (mr *MockDAOFaceMockRecorder) Begin() *gomock.Call

Begin indicates an expected call of Begin.

func (*MockDAOFaceMockRecorder) Create

func (mr *MockDAOFaceMockRecorder) Create(ctx, entity interface{}, opts ...interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockDAOFaceMockRecorder) Exec

func (mr *MockDAOFaceMockRecorder) Exec(ctx, query, tx interface{}, args ...interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockDAOFaceMockRecorder) GetCount

func (mr *MockDAOFaceMockRecorder) GetCount(ctx, entity, condition interface{}, opts ...interface{}) *gomock.Call

GetCount indicates an expected call of GetCount.

func (*MockDAOFaceMockRecorder) List

func (mr *MockDAOFaceMockRecorder) List(ctx, dest, table, condition interface{}, opts ...interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockDAOFaceMockRecorder) LockTable

func (mr *MockDAOFaceMockRecorder) LockTable(ctx, tableName, mode, tx interface{}) *gomock.Call

LockTable indicates an expected call of LockTable.

func (*MockDAOFaceMockRecorder) Ping

func (mr *MockDAOFaceMockRecorder) Ping(ctx interface{}) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockDAOFaceMockRecorder) Update

func (mr *MockDAOFaceMockRecorder) Update(ctx, entity, condition, operation interface{}, opts ...interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockDAOFaceMockRecorder) Upsert

func (mr *MockDAOFaceMockRecorder) Upsert(ctx, entities interface{}, opts ...interface{}) *gomock.Call

Upsert indicates an expected call of Upsert.

Jump to

Keyboard shortcuts

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