mocks

package
v0.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. 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 (*Manager) CreateToken

func (_m *Manager) CreateToken() (string, error)

CreateToken provides a mock function with no fields

func (*Manager) DecodeToken

func (_m *Manager) DecodeToken(tokenString string) (*jwt.Claims, error)

DecodeToken provides a mock function with given fields: tokenString

func (*Manager) EXPECT

func (_m *Manager) EXPECT() *Manager_Expecter

func (*Manager) ValidateToken

func (_m *Manager) ValidateToken(tokenString string) error

ValidateToken provides a mock function with given fields: tokenString

type Manager_CreateToken_Call

type Manager_CreateToken_Call struct {
	*mock.Call
}

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

func (*Manager_CreateToken_Call) Return

func (*Manager_CreateToken_Call) Run

func (*Manager_CreateToken_Call) RunAndReturn

func (_c *Manager_CreateToken_Call) RunAndReturn(run func() (string, error)) *Manager_CreateToken_Call

type Manager_DecodeToken_Call

type Manager_DecodeToken_Call struct {
	*mock.Call
}

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

func (*Manager_DecodeToken_Call) Return

func (*Manager_DecodeToken_Call) Run

func (_c *Manager_DecodeToken_Call) Run(run func(tokenString string)) *Manager_DecodeToken_Call

func (*Manager_DecodeToken_Call) RunAndReturn

func (_c *Manager_DecodeToken_Call) RunAndReturn(run func(string) (*jwt.Claims, error)) *Manager_DecodeToken_Call

type Manager_Expecter

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

func (*Manager_Expecter) CreateToken

func (_e *Manager_Expecter) CreateToken() *Manager_CreateToken_Call

CreateToken is a helper method to define mock.On call

func (*Manager_Expecter) DecodeToken

func (_e *Manager_Expecter) DecodeToken(tokenString interface{}) *Manager_DecodeToken_Call

DecodeToken is a helper method to define mock.On call

  • tokenString string

func (*Manager_Expecter) ValidateToken

func (_e *Manager_Expecter) ValidateToken(tokenString interface{}) *Manager_ValidateToken_Call

ValidateToken is a helper method to define mock.On call

  • tokenString string

type Manager_ValidateToken_Call

type Manager_ValidateToken_Call struct {
	*mock.Call
}

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

func (*Manager_ValidateToken_Call) Return

func (*Manager_ValidateToken_Call) Run

func (_c *Manager_ValidateToken_Call) Run(run func(tokenString string)) *Manager_ValidateToken_Call

func (*Manager_ValidateToken_Call) RunAndReturn

Jump to

Keyboard shortcuts

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