Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) Count(ctx context.Context, filter *rbac.Filter) (int64, error)
- func (m *MockRepository) Create(ctx context.Context, role *model.Role) (uint64, error)
- func (m *MockRepository) Delete(ctx context.Context, id uint64) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) FetchList(ctx context.Context, filter *rbac.Filter, order *rbac.Order, ...) ([]*model.Role, error)
- func (m *MockRepository) Get(ctx context.Context, id uint64) (*model.Role, error)
- func (m *MockRepository) GetByName(ctx context.Context, name string) (*model.Role, error)
- func (m *MockRepository) Update(ctx context.Context, id uint64, role *model.Role) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) Count(ctx, filter interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Create(ctx, role interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Delete(ctx, id interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) FetchList(ctx, filter, order, pagination interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Get(ctx, id interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetByName(ctx, name interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Update(ctx, id, role interface{}) *gomock.Call
- type MockUsecase
- func (m *MockUsecase) Count(ctx context.Context, filter *rbac.Filter) (int64, error)
- func (m *MockUsecase) Create(ctx context.Context, role *model.Role) (uint64, error)
- func (m *MockUsecase) Delete(ctx context.Context, id uint64) error
- func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder
- func (m *MockUsecase) FetchList(ctx context.Context, filter *rbac.Filter, order *rbac.Order, ...) ([]*model.Role, error)
- func (m *MockUsecase) Get(ctx context.Context, id uint64) (*model.Role, error)
- func (m *MockUsecase) GetByName(ctx context.Context, title string) (*model.Role, error)
- func (m *MockUsecase) Update(ctx context.Context, id uint64, role *model.Role) error
- type MockUsecaseMockRecorder
- func (mr *MockUsecaseMockRecorder) Count(ctx, filter interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) Create(ctx, role interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) Delete(ctx, id interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) FetchList(ctx, filter, order, pagination interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) Get(ctx, id interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) GetByName(ctx, title interface{}) *gomock.Call
- func (mr *MockUsecaseMockRecorder) Update(ctx, id, role interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) Delete ¶
func (m *MockRepository) Delete(ctx context.Context, id uint64) error
Delete mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) FetchList ¶
func (m *MockRepository) FetchList(ctx context.Context, filter *rbac.Filter, order *rbac.Order, pagination *repository.Pagination) ([]*model.Role, error)
FetchList mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) Count ¶
func (mr *MockRepositoryMockRecorder) Count(ctx, filter interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockRepositoryMockRecorder) Create ¶
func (mr *MockRepositoryMockRecorder) Create(ctx, role interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockRepositoryMockRecorder) Delete ¶
func (mr *MockRepositoryMockRecorder) Delete(ctx, id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockRepositoryMockRecorder) FetchList ¶
func (mr *MockRepositoryMockRecorder) FetchList(ctx, filter, order, pagination interface{}) *gomock.Call
FetchList indicates an expected call of FetchList.
func (*MockRepositoryMockRecorder) Get ¶
func (mr *MockRepositoryMockRecorder) Get(ctx, id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRepositoryMockRecorder) GetByName ¶
func (mr *MockRepositoryMockRecorder) GetByName(ctx, name interface{}) *gomock.Call
GetByName indicates an expected call of GetByName.
func (*MockRepositoryMockRecorder) Update ¶
func (mr *MockRepositoryMockRecorder) Update(ctx, id, role interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockUsecase ¶
type MockUsecase struct {
// contains filtered or unexported fields
}
MockUsecase is a mock of Usecase interface.
func NewMockUsecase ¶
func NewMockUsecase(ctrl *gomock.Controller) *MockUsecase
NewMockUsecase creates a new mock instance.
func (*MockUsecase) Delete ¶
func (m *MockUsecase) Delete(ctx context.Context, id uint64) error
Delete mocks base method.
func (*MockUsecase) EXPECT ¶
func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUsecase) FetchList ¶
func (m *MockUsecase) FetchList(ctx context.Context, filter *rbac.Filter, order *rbac.Order, pagination *repository.Pagination) ([]*model.Role, error)
FetchList mocks base method.
type MockUsecaseMockRecorder ¶
type MockUsecaseMockRecorder struct {
// contains filtered or unexported fields
}
MockUsecaseMockRecorder is the mock recorder for MockUsecase.
func (*MockUsecaseMockRecorder) Count ¶
func (mr *MockUsecaseMockRecorder) Count(ctx, filter interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockUsecaseMockRecorder) Create ¶
func (mr *MockUsecaseMockRecorder) Create(ctx, role interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockUsecaseMockRecorder) Delete ¶
func (mr *MockUsecaseMockRecorder) Delete(ctx, id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockUsecaseMockRecorder) FetchList ¶
func (mr *MockUsecaseMockRecorder) FetchList(ctx, filter, order, pagination interface{}) *gomock.Call
FetchList indicates an expected call of FetchList.
func (*MockUsecaseMockRecorder) Get ¶
func (mr *MockUsecaseMockRecorder) Get(ctx, id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockUsecaseMockRecorder) GetByName ¶
func (mr *MockUsecaseMockRecorder) GetByName(ctx, title interface{}) *gomock.Call
GetByName indicates an expected call of GetByName.
func (*MockUsecaseMockRecorder) Update ¶
func (mr *MockUsecaseMockRecorder) Update(ctx, id, role interface{}) *gomock.Call
Update indicates an expected call of Update.