mocks

package
v3.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PermissionSet

type PermissionSet struct {
	mock.Mock
}

PermissionSet is an autogenerated mock type for the PermissionSet type

func NewPermissionSet added in v3.4.0

func NewPermissionSet(t interface {
	mock.TestingT
	Cleanup(func())
}) *PermissionSet

NewPermissionSet creates a new instance of PermissionSet. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*PermissionSet) EXPECT added in v3.5.1

func (_m *PermissionSet) EXPECT() *PermissionSet_Expecter

func (*PermissionSet) Permissions

func (_m *PermissionSet) Permissions() []string

Permissions provides a mock function with given fields:

type PermissionSet_Expecter added in v3.5.1

type PermissionSet_Expecter struct {
	// contains filtered or unexported fields
}

func (*PermissionSet_Expecter) Permissions added in v3.5.1

Permissions is a helper method to define mock.On call

type PermissionSet_Permissions_Call added in v3.5.1

type PermissionSet_Permissions_Call struct {
	*mock.Call
}

PermissionSet_Permissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Permissions'

func (*PermissionSet_Permissions_Call) Return added in v3.5.1

func (*PermissionSet_Permissions_Call) Run added in v3.5.1

func (*PermissionSet_Permissions_Call) RunAndReturn added in v3.5.1

type Role

type Role struct {
	mock.Mock
}

Role is an autogenerated mock type for the Role type

func NewRole added in v3.4.0

func NewRole(t interface {
	mock.TestingT
	Cleanup(func())
}) *Role

NewRole creates a new instance of Role. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Role) EXPECT added in v3.5.1

func (_m *Role) EXPECT() *Role_Expecter

func (*Role) Label

func (_m *Role) Label() string

Label provides a mock function with given fields:

func (*Role) Permissions

func (_m *Role) Permissions() []string

Permissions provides a mock function with given fields:

type Role_Expecter added in v3.5.1

type Role_Expecter struct {
	// contains filtered or unexported fields
}

func (*Role_Expecter) Label added in v3.5.1

func (_e *Role_Expecter) Label() *Role_Label_Call

Label is a helper method to define mock.On call

func (*Role_Expecter) Permissions added in v3.5.1

func (_e *Role_Expecter) Permissions() *Role_Permissions_Call

Permissions is a helper method to define mock.On call

type Role_Label_Call added in v3.5.1

type Role_Label_Call struct {
	*mock.Call
}

Role_Label_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Label'

func (*Role_Label_Call) Return added in v3.5.1

func (_c *Role_Label_Call) Return(_a0 string) *Role_Label_Call

func (*Role_Label_Call) Run added in v3.5.1

func (_c *Role_Label_Call) Run(run func()) *Role_Label_Call

func (*Role_Label_Call) RunAndReturn added in v3.5.1

func (_c *Role_Label_Call) RunAndReturn(run func() string) *Role_Label_Call

type Role_Permissions_Call added in v3.5.1

type Role_Permissions_Call struct {
	*mock.Call
}

Role_Permissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Permissions'

func (*Role_Permissions_Call) Return added in v3.5.1

func (*Role_Permissions_Call) Run added in v3.5.1

func (_c *Role_Permissions_Call) Run(run func()) *Role_Permissions_Call

func (*Role_Permissions_Call) RunAndReturn added in v3.5.1

func (_c *Role_Permissions_Call) RunAndReturn(run func() []string) *Role_Permissions_Call

Jump to

Keyboard shortcuts

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