mocks

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 5 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 testing.TB) *Provider

NewProvider creates a new instance of Provider. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

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

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 testing.TB) *Service

NewService creates a new instance of Service. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*Service) AllPermissions

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

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

Jump to

Keyboard shortcuts

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