Documentation ¶
Overview ¶
Package role is a generated GoMock package.
Package role is a generated GoMock package.
Index ¶
- type MockIService
- func (m *MockIService) CreateRole(ctx context.Context, roleInfo *role.CreatedInput) (*role.Output, error)
- func (m *MockIService) DeleteRole(ctx context.Context, roleInfo *role.DeletedInput) (*role.Output, error)
- func (m *MockIService) EXPECT() *MockIServiceMockRecorder
- func (m *MockIService) GetRoleDetail(ctx context.Context, roleInfo *role.DetailGotInput) (*role.Output, error)
- func (m *MockIService) GetRoleList(ctx context.Context, roleInfo *role.ListGotInput) (*role.OutputList, error)
- func (m *MockIService) UpdateRole(ctx context.Context, roleInfo *role.UpdatedInput) (*role.Output, error)
- type MockIServiceMockRecorder
- func (mr *MockIServiceMockRecorder) CreateRole(ctx, roleInfo interface{}) *gomock.Call
- func (mr *MockIServiceMockRecorder) DeleteRole(ctx, roleInfo interface{}) *gomock.Call
- func (mr *MockIServiceMockRecorder) GetRoleDetail(ctx, roleInfo interface{}) *gomock.Call
- func (mr *MockIServiceMockRecorder) GetRoleList(ctx, roleInfo interface{}) *gomock.Call
- func (mr *MockIServiceMockRecorder) UpdateRole(ctx, roleInfo interface{}) *gomock.Call
- type MockRoleRepository
- func (m *MockRoleRepository) Create(ctx context.Context, e domain.IEntity) (domain.IEntity, error)
- func (m *MockRoleRepository) CreateTx(arg0 context.Context, arg1 domain.IEntity, arg2 domain.ITransactionEvent) (domain.IEntity, error)
- func (m *MockRoleRepository) Delete(ctx context.Context, e domain.IEntity) (domain.IEntity, error)
- func (m *MockRoleRepository) DeleteTx(arg0 context.Context, arg1 domain.IEntity, arg2 domain.ITransactionEvent) (domain.IEntity, error)
- func (m *MockRoleRepository) EXPECT() *MockRoleRepositoryMockRecorder
- func (m *MockRoleRepository) GetAll(ctx context.Context, sq *domain.SearchQuery, e domain.IEntity) (*domain.List, error)
- func (m *MockRoleRepository) GetByID(ctx context.Context, e domain.IEntity) (domain.IEntity, error)
- func (m *MockRoleRepository) Update(ctx context.Context, e domain.IEntity) (domain.IEntity, error)
- func (m *MockRoleRepository) UpdateTx(arg0 context.Context, arg1 domain.IEntity, arg2 domain.ITransactionEvent) (domain.IEntity, error)
- func (m *MockRoleRepository) UpdateWithFields(ctx context.Context, e domain.IEntity, keys []string) (domain.IEntity, error)
- func (m *MockRoleRepository) UpdateWithFieldsTx(arg0 context.Context, arg1 domain.IEntity, arg2 []string, ...) (domain.IEntity, error)
- type MockRoleRepositoryMockRecorder
- func (mr *MockRoleRepositoryMockRecorder) Create(ctx, e interface{}) *gomock.Call
- func (mr *MockRoleRepositoryMockRecorder) CreateTx(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRoleRepositoryMockRecorder) Delete(ctx, e interface{}) *gomock.Call
- func (mr *MockRoleRepositoryMockRecorder) DeleteTx(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRoleRepositoryMockRecorder) GetAll(ctx, sq, e interface{}) *gomock.Call
- func (mr *MockRoleRepositoryMockRecorder) GetByID(ctx, e interface{}) *gomock.Call
- func (mr *MockRoleRepositoryMockRecorder) Update(ctx, e interface{}) *gomock.Call
- func (mr *MockRoleRepositoryMockRecorder) UpdateTx(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRoleRepositoryMockRecorder) UpdateWithFields(ctx, e, keys interface{}) *gomock.Call
- func (mr *MockRoleRepositoryMockRecorder) UpdateWithFieldsTx(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIService ¶
type MockIService struct {
// contains filtered or unexported fields
}
MockIService is a mock of IService interface.
func NewMockIService ¶
func NewMockIService(ctrl *gomock.Controller) *MockIService
NewMockIService creates a new mock instance.
func (*MockIService) CreateRole ¶
func (m *MockIService) CreateRole(ctx context.Context, roleInfo *role.CreatedInput) (*role.Output, error)
CreateRole mocks base method.
func (*MockIService) DeleteRole ¶
func (m *MockIService) DeleteRole(ctx context.Context, roleInfo *role.DeletedInput) (*role.Output, error)
DeleteRole mocks base method.
func (*MockIService) EXPECT ¶
func (m *MockIService) EXPECT() *MockIServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIService) GetRoleDetail ¶
func (m *MockIService) GetRoleDetail(ctx context.Context, roleInfo *role.DetailGotInput) (*role.Output, error)
GetRoleDetail mocks base method.
func (*MockIService) GetRoleList ¶
func (m *MockIService) GetRoleList(ctx context.Context, roleInfo *role.ListGotInput) (*role.OutputList, error)
GetRoleList mocks base method.
func (*MockIService) UpdateRole ¶
func (m *MockIService) UpdateRole(ctx context.Context, roleInfo *role.UpdatedInput) (*role.Output, error)
UpdateRole mocks base method.
type MockIServiceMockRecorder ¶
type MockIServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockIServiceMockRecorder is the mock recorder for MockIService.
func (*MockIServiceMockRecorder) CreateRole ¶
func (mr *MockIServiceMockRecorder) CreateRole(ctx, roleInfo interface{}) *gomock.Call
CreateRole indicates an expected call of CreateRole.
func (*MockIServiceMockRecorder) DeleteRole ¶
func (mr *MockIServiceMockRecorder) DeleteRole(ctx, roleInfo interface{}) *gomock.Call
DeleteRole indicates an expected call of DeleteRole.
func (*MockIServiceMockRecorder) GetRoleDetail ¶
func (mr *MockIServiceMockRecorder) GetRoleDetail(ctx, roleInfo interface{}) *gomock.Call
GetRoleDetail indicates an expected call of GetRoleDetail.
func (*MockIServiceMockRecorder) GetRoleList ¶
func (mr *MockIServiceMockRecorder) GetRoleList(ctx, roleInfo interface{}) *gomock.Call
GetRoleList indicates an expected call of GetRoleList.
func (*MockIServiceMockRecorder) UpdateRole ¶
func (mr *MockIServiceMockRecorder) UpdateRole(ctx, roleInfo interface{}) *gomock.Call
UpdateRole indicates an expected call of UpdateRole.
type MockRoleRepository ¶
type MockRoleRepository struct {
// contains filtered or unexported fields
}
MockRoleRepository is a mock of RoleRepository interface.
func NewMockRoleRepository ¶
func NewMockRoleRepository(ctrl *gomock.Controller) *MockRoleRepository
NewMockRoleRepository creates a new mock instance.
func (*MockRoleRepository) CreateTx ¶
func (m *MockRoleRepository) CreateTx(arg0 context.Context, arg1 domain.IEntity, arg2 domain.ITransactionEvent) (domain.IEntity, error)
CreateTx mocks base method.
func (*MockRoleRepository) DeleteTx ¶
func (m *MockRoleRepository) DeleteTx(arg0 context.Context, arg1 domain.IEntity, arg2 domain.ITransactionEvent) (domain.IEntity, error)
DeleteTx mocks base method.
func (*MockRoleRepository) EXPECT ¶
func (m *MockRoleRepository) EXPECT() *MockRoleRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRoleRepository) GetAll ¶
func (m *MockRoleRepository) GetAll(ctx context.Context, sq *domain.SearchQuery, e domain.IEntity) (*domain.List, error)
GetAll mocks base method.
func (*MockRoleRepository) UpdateTx ¶
func (m *MockRoleRepository) UpdateTx(arg0 context.Context, arg1 domain.IEntity, arg2 domain.ITransactionEvent) (domain.IEntity, error)
UpdateTx mocks base method.
func (*MockRoleRepository) UpdateWithFields ¶
func (m *MockRoleRepository) UpdateWithFields(ctx context.Context, e domain.IEntity, keys []string) (domain.IEntity, error)
UpdateWithFields mocks base method.
func (*MockRoleRepository) UpdateWithFieldsTx ¶
func (m *MockRoleRepository) UpdateWithFieldsTx(arg0 context.Context, arg1 domain.IEntity, arg2 []string, arg3 domain.ITransactionEvent) (domain.IEntity, error)
UpdateWithFieldsTx mocks base method.
type MockRoleRepositoryMockRecorder ¶
type MockRoleRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRoleRepositoryMockRecorder is the mock recorder for MockRoleRepository.
func (*MockRoleRepositoryMockRecorder) Create ¶
func (mr *MockRoleRepositoryMockRecorder) Create(ctx, e interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockRoleRepositoryMockRecorder) CreateTx ¶
func (mr *MockRoleRepositoryMockRecorder) CreateTx(arg0, arg1, arg2 interface{}) *gomock.Call
CreateTx indicates an expected call of CreateTx.
func (*MockRoleRepositoryMockRecorder) Delete ¶
func (mr *MockRoleRepositoryMockRecorder) Delete(ctx, e interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockRoleRepositoryMockRecorder) DeleteTx ¶
func (mr *MockRoleRepositoryMockRecorder) DeleteTx(arg0, arg1, arg2 interface{}) *gomock.Call
DeleteTx indicates an expected call of DeleteTx.
func (*MockRoleRepositoryMockRecorder) GetAll ¶
func (mr *MockRoleRepositoryMockRecorder) GetAll(ctx, sq, e interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockRoleRepositoryMockRecorder) GetByID ¶
func (mr *MockRoleRepositoryMockRecorder) GetByID(ctx, e interface{}) *gomock.Call
GetByID indicates an expected call of GetByID.
func (*MockRoleRepositoryMockRecorder) Update ¶
func (mr *MockRoleRepositoryMockRecorder) Update(ctx, e interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockRoleRepositoryMockRecorder) UpdateTx ¶
func (mr *MockRoleRepositoryMockRecorder) UpdateTx(arg0, arg1, arg2 interface{}) *gomock.Call
UpdateTx indicates an expected call of UpdateTx.
func (*MockRoleRepositoryMockRecorder) UpdateWithFields ¶
func (mr *MockRoleRepositoryMockRecorder) UpdateWithFields(ctx, e, keys interface{}) *gomock.Call
UpdateWithFields indicates an expected call of UpdateWithFields.
func (*MockRoleRepositoryMockRecorder) UpdateWithFieldsTx ¶
func (mr *MockRoleRepositoryMockRecorder) UpdateWithFieldsTx(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
UpdateWithFieldsTx indicates an expected call of UpdateWithFieldsTx.