permissionmocks

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

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

type ServiceCreatePersonalPermissionCall struct {
	*gomock.Call
}

ServiceCreatePersonalPermissionCall wrap *gomock.Call

func (*ServiceCreatePersonalPermissionCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceCreatePersonalPermissionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceCreatePersonalPermissionCall) Return

Return rewrite *gomock.Call.Return

type ServiceFindPersonalPermissionsCall

type ServiceFindPersonalPermissionsCall struct {
	*gomock.Call
}

ServiceFindPersonalPermissionsCall wrap *gomock.Call

func (*ServiceFindPersonalPermissionsCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceFindPersonalPermissionsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceFindPersonalPermissionsCall) Return

Return rewrite *gomock.Call.Return

type ServiceHasPermissionCall

type ServiceHasPermissionCall struct {
	*gomock.Call
}

ServiceHasPermissionCall wrap *gomock.Call

func (*ServiceHasPermissionCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceHasPermissionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceHasPermissionCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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