Documentation ¶
Index ¶
- type WorkbookCommandUsecase
- func (_m *WorkbookCommandUsecase) AddWorkbook(ctx context.Context, operator service.OperatorInterface, ...) (*domain.WorkbookID, error)
- func (_m *WorkbookCommandUsecase) EXPECT() *WorkbookCommandUsecase_Expecter
- func (_m *WorkbookCommandUsecase) UpdateWorkbook(ctx context.Context, operator service.OperatorInterface, ...) error
- type WorkbookCommandUsecase_AddWorkbook_Call
- func (_c *WorkbookCommandUsecase_AddWorkbook_Call) Return(_a0 *domain.WorkbookID, _a1 error) *WorkbookCommandUsecase_AddWorkbook_Call
- func (_c *WorkbookCommandUsecase_AddWorkbook_Call) Run(run func(ctx context.Context, operator service.OperatorInterface, ...)) *WorkbookCommandUsecase_AddWorkbook_Call
- func (_c *WorkbookCommandUsecase_AddWorkbook_Call) RunAndReturn(...) *WorkbookCommandUsecase_AddWorkbook_Call
- type WorkbookCommandUsecase_Expecter
- func (_e *WorkbookCommandUsecase_Expecter) AddWorkbook(ctx interface{}, operator interface{}, param interface{}) *WorkbookCommandUsecase_AddWorkbook_Call
- func (_e *WorkbookCommandUsecase_Expecter) UpdateWorkbook(ctx interface{}, operator interface{}, workbookID interface{}, ...) *WorkbookCommandUsecase_UpdateWorkbook_Call
- type WorkbookCommandUsecase_UpdateWorkbook_Call
- func (_c *WorkbookCommandUsecase_UpdateWorkbook_Call) Return(_a0 error) *WorkbookCommandUsecase_UpdateWorkbook_Call
- func (_c *WorkbookCommandUsecase_UpdateWorkbook_Call) Run(run func(ctx context.Context, operator service.OperatorInterface, ...)) *WorkbookCommandUsecase_UpdateWorkbook_Call
- func (_c *WorkbookCommandUsecase_UpdateWorkbook_Call) RunAndReturn(...) *WorkbookCommandUsecase_UpdateWorkbook_Call
- type WorkbookQueryUsecase
- func (_m *WorkbookQueryUsecase) EXPECT() *WorkbookQueryUsecase_Expecter
- func (_m *WorkbookQueryUsecase) FindWorkbooks(ctx context.Context, operator service.OperatorInterface, ...) (*api.WorkbookFindResult, error)
- func (_m *WorkbookQueryUsecase) RetrieveWorkbookByID(ctx context.Context, operator service.OperatorInterface, ...) (*api.WorkbookRetrieveResult, error)
- type WorkbookQueryUsecase_Expecter
- func (_e *WorkbookQueryUsecase_Expecter) FindWorkbooks(ctx interface{}, operator interface{}, param interface{}) *WorkbookQueryUsecase_FindWorkbooks_Call
- func (_e *WorkbookQueryUsecase_Expecter) RetrieveWorkbookByID(ctx interface{}, operator interface{}, workbookID interface{}) *WorkbookQueryUsecase_RetrieveWorkbookByID_Call
- type WorkbookQueryUsecase_FindWorkbooks_Call
- func (_c *WorkbookQueryUsecase_FindWorkbooks_Call) Return(_a0 *api.WorkbookFindResult, _a1 error) *WorkbookQueryUsecase_FindWorkbooks_Call
- func (_c *WorkbookQueryUsecase_FindWorkbooks_Call) Run(run func(ctx context.Context, operator service.OperatorInterface, ...)) *WorkbookQueryUsecase_FindWorkbooks_Call
- func (_c *WorkbookQueryUsecase_FindWorkbooks_Call) RunAndReturn(...) *WorkbookQueryUsecase_FindWorkbooks_Call
- type WorkbookQueryUsecase_RetrieveWorkbookByID_Call
- func (_c *WorkbookQueryUsecase_RetrieveWorkbookByID_Call) Return(_a0 *api.WorkbookRetrieveResult, _a1 error) *WorkbookQueryUsecase_RetrieveWorkbookByID_Call
- func (_c *WorkbookQueryUsecase_RetrieveWorkbookByID_Call) Run(run func(ctx context.Context, operator service.OperatorInterface, ...)) *WorkbookQueryUsecase_RetrieveWorkbookByID_Call
- func (_c *WorkbookQueryUsecase_RetrieveWorkbookByID_Call) RunAndReturn(...) *WorkbookQueryUsecase_RetrieveWorkbookByID_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkbookCommandUsecase ¶
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 ¶
func (_m *WorkbookCommandUsecase) AddWorkbook(ctx context.Context, operator service.OperatorInterface, param *service.WorkbookAddParameter) (*domain.WorkbookID, error)
AddWorkbook provides a mock function with given fields: ctx, operator, param
func (*WorkbookCommandUsecase) EXPECT ¶
func (_m *WorkbookCommandUsecase) EXPECT() *WorkbookCommandUsecase_Expecter
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 ¶
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 (_c *WorkbookCommandUsecase_AddWorkbook_Call) Return(_a0 *domain.WorkbookID, _a1 error) *WorkbookCommandUsecase_AddWorkbook_Call
func (*WorkbookCommandUsecase_AddWorkbook_Call) Run ¶
func (_c *WorkbookCommandUsecase_AddWorkbook_Call) Run(run func(ctx context.Context, operator service.OperatorInterface, param *service.WorkbookAddParameter)) *WorkbookCommandUsecase_AddWorkbook_Call
func (*WorkbookCommandUsecase_AddWorkbook_Call) RunAndReturn ¶
func (_c *WorkbookCommandUsecase_AddWorkbook_Call) RunAndReturn(run func(context.Context, service.OperatorInterface, *service.WorkbookAddParameter) (*domain.WorkbookID, error)) *WorkbookCommandUsecase_AddWorkbook_Call
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 ¶
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 (_c *WorkbookCommandUsecase_UpdateWorkbook_Call) Return(_a0 error) *WorkbookCommandUsecase_UpdateWorkbook_Call
func (*WorkbookCommandUsecase_UpdateWorkbook_Call) Run ¶
func (_c *WorkbookCommandUsecase_UpdateWorkbook_Call) Run(run func(ctx context.Context, operator service.OperatorInterface, workbookID *domain.WorkbookID, version int, param *service.WorkbookUpdateParameter)) *WorkbookCommandUsecase_UpdateWorkbook_Call
func (*WorkbookCommandUsecase_UpdateWorkbook_Call) RunAndReturn ¶
func (_c *WorkbookCommandUsecase_UpdateWorkbook_Call) RunAndReturn(run func(context.Context, service.OperatorInterface, *domain.WorkbookID, int, *service.WorkbookUpdateParameter) error) *WorkbookCommandUsecase_UpdateWorkbook_Call
type WorkbookQueryUsecase ¶
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 (_m *WorkbookQueryUsecase) EXPECT() *WorkbookQueryUsecase_Expecter
func (*WorkbookQueryUsecase) FindWorkbooks ¶
func (_m *WorkbookQueryUsecase) FindWorkbooks(ctx context.Context, operator service.OperatorInterface, param *api.WorkbookFindParameter) (*api.WorkbookFindResult, error)
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 ¶
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 (_c *WorkbookQueryUsecase_FindWorkbooks_Call) Return(_a0 *api.WorkbookFindResult, _a1 error) *WorkbookQueryUsecase_FindWorkbooks_Call
func (*WorkbookQueryUsecase_FindWorkbooks_Call) Run ¶
func (_c *WorkbookQueryUsecase_FindWorkbooks_Call) Run(run func(ctx context.Context, operator service.OperatorInterface, param *api.WorkbookFindParameter)) *WorkbookQueryUsecase_FindWorkbooks_Call
func (*WorkbookQueryUsecase_FindWorkbooks_Call) RunAndReturn ¶
func (_c *WorkbookQueryUsecase_FindWorkbooks_Call) RunAndReturn(run func(context.Context, service.OperatorInterface, *api.WorkbookFindParameter) (*api.WorkbookFindResult, error)) *WorkbookQueryUsecase_FindWorkbooks_Call
type WorkbookQueryUsecase_RetrieveWorkbookByID_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 (_c *WorkbookQueryUsecase_RetrieveWorkbookByID_Call) Return(_a0 *api.WorkbookRetrieveResult, _a1 error) *WorkbookQueryUsecase_RetrieveWorkbookByID_Call
func (*WorkbookQueryUsecase_RetrieveWorkbookByID_Call) Run ¶
func (_c *WorkbookQueryUsecase_RetrieveWorkbookByID_Call) Run(run func(ctx context.Context, operator service.OperatorInterface, workbookID *domain.WorkbookID)) *WorkbookQueryUsecase_RetrieveWorkbookByID_Call
func (*WorkbookQueryUsecase_RetrieveWorkbookByID_Call) RunAndReturn ¶
func (_c *WorkbookQueryUsecase_RetrieveWorkbookByID_Call) RunAndReturn(run func(context.Context, service.OperatorInterface, *domain.WorkbookID) (*api.WorkbookRetrieveResult, error)) *WorkbookQueryUsecase_RetrieveWorkbookByID_Call