mocks

package
v4.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface struct {
	mock.Mock
}

Interface is an autogenerated mock type for the Interface type

func NewInterface

func NewInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *Interface

NewInterface creates a new instance of Interface. 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 (*Interface) Authorize

func (_mock *Interface) Authorize(authorization string) (*types.Claims, error)

Authorize provides a mock function for the type Interface

func (*Interface) EXPECT

func (_m *Interface) EXPECT() *Interface_Expecter

func (*Interface) HandleCallback

func (_mock *Interface) HandleCallback(writer http.ResponseWriter, request *http.Request)

HandleCallback provides a mock function for the type Interface

func (*Interface) HandleRedirect

func (_mock *Interface) HandleRedirect(writer http.ResponseWriter, request *http.Request)

HandleRedirect provides a mock function for the type Interface

func (*Interface) IsRBACEnabled

func (_mock *Interface) IsRBACEnabled() bool

IsRBACEnabled provides a mock function for the type Interface

type Interface_Authorize_Call

type Interface_Authorize_Call struct {
	*mock.Call
}

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

func (*Interface_Authorize_Call) Return

func (*Interface_Authorize_Call) Run

func (_c *Interface_Authorize_Call) Run(run func(authorization string)) *Interface_Authorize_Call

func (*Interface_Authorize_Call) RunAndReturn

func (_c *Interface_Authorize_Call) RunAndReturn(run func(authorization string) (*types.Claims, error)) *Interface_Authorize_Call

type Interface_Expecter

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

func (*Interface_Expecter) Authorize

func (_e *Interface_Expecter) Authorize(authorization interface{}) *Interface_Authorize_Call

Authorize is a helper method to define mock.On call

  • authorization string

func (*Interface_Expecter) HandleCallback

func (_e *Interface_Expecter) HandleCallback(writer interface{}, request interface{}) *Interface_HandleCallback_Call

HandleCallback is a helper method to define mock.On call

  • writer http.ResponseWriter
  • request *http.Request

func (*Interface_Expecter) HandleRedirect

func (_e *Interface_Expecter) HandleRedirect(writer interface{}, request interface{}) *Interface_HandleRedirect_Call

HandleRedirect is a helper method to define mock.On call

  • writer http.ResponseWriter
  • request *http.Request

func (*Interface_Expecter) IsRBACEnabled

func (_e *Interface_Expecter) IsRBACEnabled() *Interface_IsRBACEnabled_Call

IsRBACEnabled is a helper method to define mock.On call

type Interface_HandleCallback_Call

type Interface_HandleCallback_Call struct {
	*mock.Call
}

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

func (*Interface_HandleCallback_Call) Return

func (*Interface_HandleCallback_Call) Run

func (*Interface_HandleCallback_Call) RunAndReturn

func (_c *Interface_HandleCallback_Call) RunAndReturn(run func(writer http.ResponseWriter, request *http.Request)) *Interface_HandleCallback_Call

type Interface_HandleRedirect_Call

type Interface_HandleRedirect_Call struct {
	*mock.Call
}

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

func (*Interface_HandleRedirect_Call) Return

func (*Interface_HandleRedirect_Call) Run

func (*Interface_HandleRedirect_Call) RunAndReturn

func (_c *Interface_HandleRedirect_Call) RunAndReturn(run func(writer http.ResponseWriter, request *http.Request)) *Interface_HandleRedirect_Call

type Interface_IsRBACEnabled_Call

type Interface_IsRBACEnabled_Call struct {
	*mock.Call
}

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

func (*Interface_IsRBACEnabled_Call) Return

func (*Interface_IsRBACEnabled_Call) Run

func (*Interface_IsRBACEnabled_Call) RunAndReturn

func (_c *Interface_IsRBACEnabled_Call) RunAndReturn(run func() bool) *Interface_IsRBACEnabled_Call

Jump to

Keyboard shortcuts

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