Documentation ¶
Index ¶
- type Provider
- type Provider_All_Call
- type Provider_Expecter
- type Service
- type Service_AllPermissions_Call
- func (_c *Service_AllPermissions_Call) Return(_a0 []string) *Service_AllPermissions_Call
- func (_c *Service_AllPermissions_Call) Run(run func(_a0 context.Context, _a1 *web.Session)) *Service_AllPermissions_Call
- func (_c *Service_AllPermissions_Call) RunAndReturn(run func(context.Context, *web.Session) []string) *Service_AllPermissions_Call
- type Service_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
Provider is an autogenerated mock type for the Provider type
func NewProvider ¶ added in v3.4.0
func NewProvider(t mockConstructorTestingTNewProvider) *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.
func (*Provider) EXPECT ¶ added in v3.5.1
func (_m *Provider) EXPECT() *Provider_Expecter
type Provider_All_Call ¶ added in v3.5.1
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 ¶
Service is an autogenerated mock type for the Service type
func NewService ¶ added in v3.4.0
func NewService(t mockConstructorTestingTNewService) *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.
func (*Service) AllPermissions ¶
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
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 (_c *Service_AllPermissions_Call) Return(_a0 []string) *Service_AllPermissions_Call
func (*Service_AllPermissions_Call) Run ¶ added in v3.5.1
func (_c *Service_AllPermissions_Call) Run(run func(_a0 context.Context, _a1 *web.Session)) *Service_AllPermissions_Call
func (*Service_AllPermissions_Call) RunAndReturn ¶ added in v3.5.1
func (_c *Service_AllPermissions_Call) RunAndReturn(run func(context.Context, *web.Session) []string) *Service_AllPermissions_Call
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