mock

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 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 MockManager

type MockManager struct {
	mock.Mock
}

MockManager is an autogenerated mock type for the Manager type

func NewMockManager

func NewMockManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockManager

NewMockManager creates a new instance of MockManager. 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 (*MockManager) DeleteToken

func (_mock *MockManager) DeleteToken(appKey string) error

DeleteToken provides a mock function for the type MockManager

func (*MockManager) EXPECT

func (_m *MockManager) EXPECT() *MockManager_Expecter

func (*MockManager) GetToken

func (_mock *MockManager) GetToken(appKey string) (string, time.Time, bool)

GetToken provides a mock function for the type MockManager

func (*MockManager) SetToken

func (_mock *MockManager) SetToken(appKey string, token string, expiresAt time.Time) error

SetToken provides a mock function for the type MockManager

func (*MockManager) WaitForAuth

func (_mock *MockManager) WaitForAuth(appKey string)

WaitForAuth provides a mock function for the type MockManager

type MockManager_DeleteToken_Call

type MockManager_DeleteToken_Call struct {
	*mock.Call
}

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

func (*MockManager_DeleteToken_Call) Return

func (*MockManager_DeleteToken_Call) Run

func (*MockManager_DeleteToken_Call) RunAndReturn

func (_c *MockManager_DeleteToken_Call) RunAndReturn(run func(appKey string) error) *MockManager_DeleteToken_Call

type MockManager_Expecter

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

func (*MockManager_Expecter) DeleteToken

func (_e *MockManager_Expecter) DeleteToken(appKey interface{}) *MockManager_DeleteToken_Call

DeleteToken is a helper method to define mock.On call

  • appKey string

func (*MockManager_Expecter) GetToken

func (_e *MockManager_Expecter) GetToken(appKey interface{}) *MockManager_GetToken_Call

GetToken is a helper method to define mock.On call

  • appKey string

func (*MockManager_Expecter) SetToken

func (_e *MockManager_Expecter) SetToken(appKey interface{}, token interface{}, expiresAt interface{}) *MockManager_SetToken_Call

SetToken is a helper method to define mock.On call

  • appKey string
  • token string
  • expiresAt time.Time

func (*MockManager_Expecter) WaitForAuth

func (_e *MockManager_Expecter) WaitForAuth(appKey interface{}) *MockManager_WaitForAuth_Call

WaitForAuth is a helper method to define mock.On call

  • appKey string

type MockManager_GetToken_Call

type MockManager_GetToken_Call struct {
	*mock.Call
}

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

func (*MockManager_GetToken_Call) Return

func (*MockManager_GetToken_Call) Run

func (_c *MockManager_GetToken_Call) Run(run func(appKey string)) *MockManager_GetToken_Call

func (*MockManager_GetToken_Call) RunAndReturn

func (_c *MockManager_GetToken_Call) RunAndReturn(run func(appKey string) (string, time.Time, bool)) *MockManager_GetToken_Call

type MockManager_SetToken_Call

type MockManager_SetToken_Call struct {
	*mock.Call
}

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

func (*MockManager_SetToken_Call) Return

func (*MockManager_SetToken_Call) Run

func (_c *MockManager_SetToken_Call) Run(run func(appKey string, token string, expiresAt time.Time)) *MockManager_SetToken_Call

func (*MockManager_SetToken_Call) RunAndReturn

func (_c *MockManager_SetToken_Call) RunAndReturn(run func(appKey string, token string, expiresAt time.Time) error) *MockManager_SetToken_Call

type MockManager_WaitForAuth_Call

type MockManager_WaitForAuth_Call struct {
	*mock.Call
}

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

func (*MockManager_WaitForAuth_Call) Return

func (*MockManager_WaitForAuth_Call) Run

func (*MockManager_WaitForAuth_Call) RunAndReturn

func (_c *MockManager_WaitForAuth_Call) RunAndReturn(run func(appKey string)) *MockManager_WaitForAuth_Call

Jump to

Keyboard shortcuts

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