mocks

package
v3.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider added in v3.4.0

func NewProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *Provider

NewProvider creates a new instance of Provider. 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 (*Provider) All

func (_m *Provider) All(_a0 context.Context, _a1 *web.Session) []domain.Role

All provides a mock function with given fields: _a0, _a1

func (*Provider) EXPECT added in v3.5.1

func (_m *Provider) EXPECT() *Provider_Expecter

type Provider_All_Call added in v3.5.1

type Provider_All_Call struct {
	*mock.Call
}

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

func (*Provider_All_Call) Return added in v3.5.1

func (_c *Provider_All_Call) Return(_a0 []domain.Role) *Provider_All_Call

func (*Provider_All_Call) Run added in v3.5.1

func (_c *Provider_All_Call) Run(run func(_a0 context.Context, _a1 *web.Session)) *Provider_All_Call

func (*Provider_All_Call) RunAndReturn added in v3.5.1

func (_c *Provider_All_Call) RunAndReturn(run func(context.Context, *web.Session) []domain.Role) *Provider_All_Call

type Provider_Expecter added in v3.5.1

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

func (*Provider_Expecter) All added in v3.5.1

func (_e *Provider_Expecter) All(_a0 interface{}, _a1 interface{}) *Provider_All_Call

All is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *web.Session

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService added in v3.4.0

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

NewService creates a new instance of Service. 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 (*Service) AllPermissions

func (_m *Service) AllPermissions(_a0 context.Context, _a1 *web.Session) []string

AllPermissions provides a mock function with given fields: _a0, _a1

func (*Service) EXPECT added in v3.5.1

func (_m *Service) EXPECT() *Service_Expecter

type Service_AllPermissions_Call added in v3.5.1

type Service_AllPermissions_Call struct {
	*mock.Call
}

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

func (*Service_AllPermissions_Call) Return added in v3.5.1

func (*Service_AllPermissions_Call) Run added in v3.5.1

func (*Service_AllPermissions_Call) RunAndReturn added in v3.5.1

type Service_Expecter added in v3.5.1

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

func (*Service_Expecter) AllPermissions added in v3.5.1

func (_e *Service_Expecter) AllPermissions(_a0 interface{}, _a1 interface{}) *Service_AllPermissions_Call

AllPermissions is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *web.Session

Jump to

Keyboard shortcuts

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