Documentation ¶
Overview ¶
Package mock_role is a generated GoMock package.
Index ¶
- type MockService
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) GetDefaultRole(ctx context.Context) *types.Role
- func (m *MockService) GetRole(ctx context.Context, roleName string) (*types.Role, error)
- func (m *MockService) ListRole(ctx context.Context) ([]types.Role, error)
- func (m *MockService) RoleCompare(ctx context.Context, role1, role2 string) (role.CompResult, error)
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) GetDefaultRole(ctx interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetRole(ctx, roleName interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ListRole(ctx interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) RoleCompare(ctx, role1, role2 interface{}) *gomock.Call
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) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) GetDefaultRole ¶
func (m *MockService) GetDefaultRole(ctx context.Context) *types.Role
GetDefaultRole mocks base method.
func (*MockService) RoleCompare ¶
func (m *MockService) RoleCompare(ctx context.Context, role1, role2 string) (role.CompResult, error)
RoleCompare mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) GetDefaultRole ¶
func (mr *MockServiceMockRecorder) GetDefaultRole(ctx interface{}) *gomock.Call
GetDefaultRole indicates an expected call of GetDefaultRole.
func (*MockServiceMockRecorder) GetRole ¶
func (mr *MockServiceMockRecorder) GetRole(ctx, roleName interface{}) *gomock.Call
GetRole indicates an expected call of GetRole.
func (*MockServiceMockRecorder) ListRole ¶
func (mr *MockServiceMockRecorder) ListRole(ctx interface{}) *gomock.Call
ListRole indicates an expected call of ListRole.
func (*MockServiceMockRecorder) RoleCompare ¶
func (mr *MockServiceMockRecorder) RoleCompare(ctx, role1, role2 interface{}) *gomock.Call
RoleCompare indicates an expected call of RoleCompare.
Click to show internal directories.
Click to hide internal directories.