Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: service.go
Generated by this command:
mockgen -source=service.go -package=permissionmocks -destination=../../mocks/permission.mock.go -typed Service
Package permissionmocks is a generated GoMock package.
Index ¶
- type MockService
- func (m *MockService) CreatePersonalPermission(ctx context.Context, ps []domain.Permission) error
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) FindPersonalPermissions(ctx context.Context, uid int64) (map[string][]domain.Permission, error)
- func (m *MockService) HasPermission(ctx context.Context, p domain.Permission) (bool, error)
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) CreatePersonalPermission(ctx, ps any) *ServiceCreatePersonalPermissionCall
- func (mr *MockServiceMockRecorder) FindPersonalPermissions(ctx, uid any) *ServiceFindPersonalPermissionsCall
- func (mr *MockServiceMockRecorder) HasPermission(ctx, p any) *ServiceHasPermissionCall
- type ServiceCreatePersonalPermissionCall
- func (c *ServiceCreatePersonalPermissionCall) Do(f func(context.Context, []domain.Permission) error) *ServiceCreatePersonalPermissionCall
- func (c *ServiceCreatePersonalPermissionCall) DoAndReturn(f func(context.Context, []domain.Permission) error) *ServiceCreatePersonalPermissionCall
- func (c *ServiceCreatePersonalPermissionCall) Return(arg0 error) *ServiceCreatePersonalPermissionCall
- type ServiceFindPersonalPermissionsCall
- func (c *ServiceFindPersonalPermissionsCall) Do(f func(context.Context, int64) (map[string][]domain.Permission, error)) *ServiceFindPersonalPermissionsCall
- func (c *ServiceFindPersonalPermissionsCall) DoAndReturn(f func(context.Context, int64) (map[string][]domain.Permission, error)) *ServiceFindPersonalPermissionsCall
- func (c *ServiceFindPersonalPermissionsCall) Return(arg0 map[string][]domain.Permission, arg1 error) *ServiceFindPersonalPermissionsCall
- type ServiceHasPermissionCall
- func (c *ServiceHasPermissionCall) Do(f func(context.Context, domain.Permission) (bool, error)) *ServiceHasPermissionCall
- func (c *ServiceHasPermissionCall) DoAndReturn(f func(context.Context, domain.Permission) (bool, error)) *ServiceHasPermissionCall
- func (c *ServiceHasPermissionCall) Return(arg0 bool, arg1 error) *ServiceHasPermissionCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) CreatePersonalPermission ¶
func (m *MockService) CreatePersonalPermission(ctx context.Context, ps []domain.Permission) error
CreatePersonalPermission mocks base method.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) FindPersonalPermissions ¶
func (m *MockService) FindPersonalPermissions(ctx context.Context, uid int64) (map[string][]domain.Permission, error)
FindPersonalPermissions mocks base method.
func (*MockService) HasPermission ¶
func (m *MockService) HasPermission(ctx context.Context, p domain.Permission) (bool, error)
HasPermission mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) CreatePersonalPermission ¶
func (mr *MockServiceMockRecorder) CreatePersonalPermission(ctx, ps any) *ServiceCreatePersonalPermissionCall
CreatePersonalPermission indicates an expected call of CreatePersonalPermission.
func (*MockServiceMockRecorder) FindPersonalPermissions ¶
func (mr *MockServiceMockRecorder) FindPersonalPermissions(ctx, uid any) *ServiceFindPersonalPermissionsCall
FindPersonalPermissions indicates an expected call of FindPersonalPermissions.
func (*MockServiceMockRecorder) HasPermission ¶
func (mr *MockServiceMockRecorder) HasPermission(ctx, p any) *ServiceHasPermissionCall
HasPermission indicates an expected call of HasPermission.
type ServiceCreatePersonalPermissionCall ¶
ServiceCreatePersonalPermissionCall wrap *gomock.Call
func (*ServiceCreatePersonalPermissionCall) Do ¶
func (c *ServiceCreatePersonalPermissionCall) Do(f func(context.Context, []domain.Permission) error) *ServiceCreatePersonalPermissionCall
Do rewrite *gomock.Call.Do
func (*ServiceCreatePersonalPermissionCall) DoAndReturn ¶
func (c *ServiceCreatePersonalPermissionCall) DoAndReturn(f func(context.Context, []domain.Permission) error) *ServiceCreatePersonalPermissionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceCreatePersonalPermissionCall) Return ¶
func (c *ServiceCreatePersonalPermissionCall) Return(arg0 error) *ServiceCreatePersonalPermissionCall
Return rewrite *gomock.Call.Return
type ServiceFindPersonalPermissionsCall ¶
ServiceFindPersonalPermissionsCall wrap *gomock.Call
func (*ServiceFindPersonalPermissionsCall) Do ¶
func (c *ServiceFindPersonalPermissionsCall) Do(f func(context.Context, int64) (map[string][]domain.Permission, error)) *ServiceFindPersonalPermissionsCall
Do rewrite *gomock.Call.Do
func (*ServiceFindPersonalPermissionsCall) DoAndReturn ¶
func (c *ServiceFindPersonalPermissionsCall) DoAndReturn(f func(context.Context, int64) (map[string][]domain.Permission, error)) *ServiceFindPersonalPermissionsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceFindPersonalPermissionsCall) Return ¶
func (c *ServiceFindPersonalPermissionsCall) Return(arg0 map[string][]domain.Permission, arg1 error) *ServiceFindPersonalPermissionsCall
Return rewrite *gomock.Call.Return
type ServiceHasPermissionCall ¶
ServiceHasPermissionCall wrap *gomock.Call
func (*ServiceHasPermissionCall) Do ¶
func (c *ServiceHasPermissionCall) Do(f func(context.Context, domain.Permission) (bool, error)) *ServiceHasPermissionCall
Do rewrite *gomock.Call.Do
func (*ServiceHasPermissionCall) DoAndReturn ¶
func (c *ServiceHasPermissionCall) DoAndReturn(f func(context.Context, domain.Permission) (bool, error)) *ServiceHasPermissionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceHasPermissionCall) Return ¶
func (c *ServiceHasPermissionCall) Return(arg0 bool, arg1 error) *ServiceHasPermissionCall
Return rewrite *gomock.Call.Return