daomocks

package
v0.0.0-...-12cef5b Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package daomocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockExecutionDAO

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

MockExecutionDAO is a mock of ExecutionDAO interface.

func NewMockExecutionDAO

func NewMockExecutionDAO(ctrl *gomock.Controller) *MockExecutionDAO

NewMockExecutionDAO creates a new mock instance.

func (*MockExecutionDAO) Create

func (m *MockExecutionDAO) Create(ctx context.Context, tid int64) (int64, error)

Create mocks base method.

func (*MockExecutionDAO) EXPECT

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

func (*MockExecutionDAO) GetLastExecution

func (m *MockExecutionDAO) GetLastExecution(ctx context.Context, tid int64) (task.Execution, error)

GetLastExecution mocks base method.

func (*MockExecutionDAO) Update

func (m *MockExecutionDAO) Update(ctx context.Context, eid int64, status task.ExecStatus, progress int) error

Update mocks base method.

func (*MockExecutionDAO) Upsert

func (m *MockExecutionDAO) Upsert(ctx context.Context, id int64, status task.ExecStatus, progress uint8) (int64, error)

Upsert mocks base method.

type MockExecutionDAOMockRecorder

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

MockExecutionDAOMockRecorder is the mock recorder for MockExecutionDAO.

func (*MockExecutionDAOMockRecorder) Create

func (mr *MockExecutionDAOMockRecorder) Create(ctx, tid any) *gomock.Call

Create indicates an expected call of Create.

func (*MockExecutionDAOMockRecorder) GetLastExecution

func (mr *MockExecutionDAOMockRecorder) GetLastExecution(ctx, tid any) *gomock.Call

GetLastExecution indicates an expected call of GetLastExecution.

func (*MockExecutionDAOMockRecorder) Update

func (mr *MockExecutionDAOMockRecorder) Update(ctx, eid, status, progress any) *gomock.Call

Update indicates an expected call of Update.

func (*MockExecutionDAOMockRecorder) Upsert

func (mr *MockExecutionDAOMockRecorder) Upsert(ctx, id, status, progress any) *gomock.Call

Upsert indicates an expected call of Upsert.

type MockTaskCfgRepository

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

MockTaskCfgRepository is a mock of TaskCfgRepository interface.

func NewMockTaskCfgRepository

func NewMockTaskCfgRepository(ctrl *gomock.Controller) *MockTaskCfgRepository

NewMockTaskCfgRepository creates a new mock instance.

func (*MockTaskCfgRepository) Add

Add mocks base method.

func (*MockTaskCfgRepository) EXPECT

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

func (*MockTaskCfgRepository) Stop

func (m *MockTaskCfgRepository) Stop(ctx context.Context, id int64) error

Stop mocks base method.

func (*MockTaskCfgRepository) UpdateNextTime

func (m *MockTaskCfgRepository) UpdateNextTime(ctx context.Context, id int64, next time.Time) error

UpdateNextTime mocks base method.

type MockTaskCfgRepositoryMockRecorder

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

MockTaskCfgRepositoryMockRecorder is the mock recorder for MockTaskCfgRepository.

func (*MockTaskCfgRepositoryMockRecorder) Add

Add indicates an expected call of Add.

func (*MockTaskCfgRepositoryMockRecorder) Stop

func (mr *MockTaskCfgRepositoryMockRecorder) Stop(ctx, id any) *gomock.Call

Stop indicates an expected call of Stop.

func (*MockTaskCfgRepositoryMockRecorder) UpdateNextTime

func (mr *MockTaskCfgRepositoryMockRecorder) UpdateNextTime(ctx, id, next any) *gomock.Call

UpdateNextTime indicates an expected call of UpdateNextTime.

Jump to

Keyboard shortcuts

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