mock_role

package
v0.0.0-...-64e8fac Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_role 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) 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) GetRole

func (m *MockService) GetRole(ctx context.Context, roleName string) (*types.Role, error)

GetRole mocks base method.

func (*MockService) ListRole

func (m *MockService) ListRole(ctx context.Context) ([]types.Role, error)

ListRole 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.

Jump to

Keyboard shortcuts

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