mocks

package
v3.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecurityService

type SecurityService struct {
	mock.Mock
}

SecurityService is an autogenerated mock type for the SecurityService type

func NewSecurityService added in v3.4.0

func NewSecurityService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SecurityService

NewSecurityService creates a new instance of SecurityService. 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 (*SecurityService) EXPECT added in v3.5.1

func (*SecurityService) IsGranted

func (_m *SecurityService) IsGranted(_a0 context.Context, _a1 *web.Session, _a2 string, _a3 interface{}) bool

IsGranted provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*SecurityService) IsLoggedIn

func (_m *SecurityService) IsLoggedIn(_a0 context.Context, _a1 *web.Session) bool

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

func (*SecurityService) IsLoggedOut

func (_m *SecurityService) IsLoggedOut(_a0 context.Context, _a1 *web.Session) bool

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

type SecurityService_Expecter added in v3.5.1

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

func (*SecurityService_Expecter) IsGranted added in v3.5.1

func (_e *SecurityService_Expecter) IsGranted(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *SecurityService_IsGranted_Call

IsGranted is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *web.Session
  • _a2 string
  • _a3 interface{}

func (*SecurityService_Expecter) IsLoggedIn added in v3.5.1

func (_e *SecurityService_Expecter) IsLoggedIn(_a0 interface{}, _a1 interface{}) *SecurityService_IsLoggedIn_Call

IsLoggedIn is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *web.Session

func (*SecurityService_Expecter) IsLoggedOut added in v3.5.1

func (_e *SecurityService_Expecter) IsLoggedOut(_a0 interface{}, _a1 interface{}) *SecurityService_IsLoggedOut_Call

IsLoggedOut is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *web.Session

type SecurityService_IsGranted_Call added in v3.5.1

type SecurityService_IsGranted_Call struct {
	*mock.Call
}

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

func (*SecurityService_IsGranted_Call) Return added in v3.5.1

func (*SecurityService_IsGranted_Call) Run added in v3.5.1

func (_c *SecurityService_IsGranted_Call) Run(run func(_a0 context.Context, _a1 *web.Session, _a2 string, _a3 interface{})) *SecurityService_IsGranted_Call

func (*SecurityService_IsGranted_Call) RunAndReturn added in v3.5.1

type SecurityService_IsLoggedIn_Call added in v3.5.1

type SecurityService_IsLoggedIn_Call struct {
	*mock.Call
}

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

func (*SecurityService_IsLoggedIn_Call) Return added in v3.5.1

func (*SecurityService_IsLoggedIn_Call) Run added in v3.5.1

func (*SecurityService_IsLoggedIn_Call) RunAndReturn added in v3.5.1

type SecurityService_IsLoggedOut_Call added in v3.5.1

type SecurityService_IsLoggedOut_Call struct {
	*mock.Call
}

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

func (*SecurityService_IsLoggedOut_Call) Return added in v3.5.1

func (*SecurityService_IsLoggedOut_Call) Run added in v3.5.1

func (*SecurityService_IsLoggedOut_Call) RunAndReturn added in v3.5.1

Jump to

Keyboard shortcuts

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