mocks

package
v0.0.0-...-df3562f Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkbookCommandUsecase

type WorkbookCommandUsecase struct {
	mock.Mock
}

WorkbookCommandUsecase is an autogenerated mock type for the WorkbookCommandUsecase type

func NewWorkbookCommandUsecase

func NewWorkbookCommandUsecase(t interface {
	mock.TestingT
	Cleanup(func())
}) *WorkbookCommandUsecase

NewWorkbookCommandUsecase creates a new instance of WorkbookCommandUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*WorkbookCommandUsecase) AddWorkbook

AddWorkbook provides a mock function with given fields: ctx, operator, param

func (*WorkbookCommandUsecase) EXPECT

func (*WorkbookCommandUsecase) UpdateWorkbook

func (_m *WorkbookCommandUsecase) UpdateWorkbook(ctx context.Context, operator service.OperatorInterface, workbookID *domain.WorkbookID, version int, param *service.WorkbookUpdateParameter) error

UpdateWorkbook provides a mock function with given fields: ctx, operator, workbookID, version, param

type WorkbookCommandUsecase_AddWorkbook_Call

type WorkbookCommandUsecase_AddWorkbook_Call struct {
	*mock.Call
}

WorkbookCommandUsecase_AddWorkbook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddWorkbook'

func (*WorkbookCommandUsecase_AddWorkbook_Call) Return

func (*WorkbookCommandUsecase_AddWorkbook_Call) Run

type WorkbookCommandUsecase_Expecter

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

func (*WorkbookCommandUsecase_Expecter) AddWorkbook

func (_e *WorkbookCommandUsecase_Expecter) AddWorkbook(ctx interface{}, operator interface{}, param interface{}) *WorkbookCommandUsecase_AddWorkbook_Call

AddWorkbook is a helper method to define mock.On call

  • ctx context.Context
  • operator service.OperatorInterface
  • param *service.WorkbookAddParameter

func (*WorkbookCommandUsecase_Expecter) UpdateWorkbook

func (_e *WorkbookCommandUsecase_Expecter) UpdateWorkbook(ctx interface{}, operator interface{}, workbookID interface{}, version interface{}, param interface{}) *WorkbookCommandUsecase_UpdateWorkbook_Call

UpdateWorkbook is a helper method to define mock.On call

  • ctx context.Context
  • operator service.OperatorInterface
  • workbookID *domain.WorkbookID
  • version int
  • param *service.WorkbookUpdateParameter

type WorkbookCommandUsecase_UpdateWorkbook_Call

type WorkbookCommandUsecase_UpdateWorkbook_Call struct {
	*mock.Call
}

WorkbookCommandUsecase_UpdateWorkbook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateWorkbook'

func (*WorkbookCommandUsecase_UpdateWorkbook_Call) Return

func (*WorkbookCommandUsecase_UpdateWorkbook_Call) Run

type WorkbookQueryUsecase

type WorkbookQueryUsecase struct {
	mock.Mock
}

WorkbookQueryUsecase is an autogenerated mock type for the WorkbookQueryUsecase type

func NewWorkbookQueryUsecase

func NewWorkbookQueryUsecase(t interface {
	mock.TestingT
	Cleanup(func())
}) *WorkbookQueryUsecase

NewWorkbookQueryUsecase creates a new instance of WorkbookQueryUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*WorkbookQueryUsecase) EXPECT

func (*WorkbookQueryUsecase) FindWorkbooks

FindWorkbooks provides a mock function with given fields: ctx, operator, param

func (*WorkbookQueryUsecase) RetrieveWorkbookByID

func (_m *WorkbookQueryUsecase) RetrieveWorkbookByID(ctx context.Context, operator service.OperatorInterface, workbookID *domain.WorkbookID) (*api.WorkbookRetrieveResult, error)

RetrieveWorkbookByID provides a mock function with given fields: ctx, operator, workbookID

type WorkbookQueryUsecase_Expecter

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

func (*WorkbookQueryUsecase_Expecter) FindWorkbooks

func (_e *WorkbookQueryUsecase_Expecter) FindWorkbooks(ctx interface{}, operator interface{}, param interface{}) *WorkbookQueryUsecase_FindWorkbooks_Call

FindWorkbooks is a helper method to define mock.On call

  • ctx context.Context
  • operator service.OperatorInterface
  • param *api.WorkbookFindParameter

func (*WorkbookQueryUsecase_Expecter) RetrieveWorkbookByID

func (_e *WorkbookQueryUsecase_Expecter) RetrieveWorkbookByID(ctx interface{}, operator interface{}, workbookID interface{}) *WorkbookQueryUsecase_RetrieveWorkbookByID_Call

RetrieveWorkbookByID is a helper method to define mock.On call

  • ctx context.Context
  • operator service.OperatorInterface
  • workbookID *domain.WorkbookID

type WorkbookQueryUsecase_FindWorkbooks_Call

type WorkbookQueryUsecase_FindWorkbooks_Call struct {
	*mock.Call
}

WorkbookQueryUsecase_FindWorkbooks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindWorkbooks'

func (*WorkbookQueryUsecase_FindWorkbooks_Call) Return

func (*WorkbookQueryUsecase_FindWorkbooks_Call) Run

type WorkbookQueryUsecase_RetrieveWorkbookByID_Call

type WorkbookQueryUsecase_RetrieveWorkbookByID_Call struct {
	*mock.Call
}

WorkbookQueryUsecase_RetrieveWorkbookByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveWorkbookByID'

func (*WorkbookQueryUsecase_RetrieveWorkbookByID_Call) Return

func (*WorkbookQueryUsecase_RetrieveWorkbookByID_Call) Run

Jump to

Keyboard shortcuts

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