mock

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 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 MockTokenManager

type MockTokenManager struct {
	mock.Mock
}

MockTokenManager is an autogenerated mock type for the TokenManager type

func NewMockTokenManager

func NewMockTokenManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTokenManager

NewMockTokenManager creates a new instance of MockTokenManager. 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 (*MockTokenManager) EXPECT

func (*MockTokenManager) GetToken

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

GetToken provides a mock function for the type MockTokenManager

func (*MockTokenManager) SetToken

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

SetToken provides a mock function for the type MockTokenManager

func (*MockTokenManager) WaitForAuth

func (_mock *MockTokenManager) WaitForAuth(appKey string)

WaitForAuth provides a mock function for the type MockTokenManager

type MockTokenManager_Expecter

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

func (*MockTokenManager_Expecter) GetToken

func (_e *MockTokenManager_Expecter) GetToken(appKey interface{}) *MockTokenManager_GetToken_Call

GetToken is a helper method to define mock.On call

  • appKey string

func (*MockTokenManager_Expecter) SetToken

func (_e *MockTokenManager_Expecter) SetToken(appKey interface{}, token interface{}, expiresAt interface{}) *MockTokenManager_SetToken_Call

SetToken is a helper method to define mock.On call

  • appKey string
  • token string
  • expiresAt time.Time

func (*MockTokenManager_Expecter) WaitForAuth

func (_e *MockTokenManager_Expecter) WaitForAuth(appKey interface{}) *MockTokenManager_WaitForAuth_Call

WaitForAuth is a helper method to define mock.On call

  • appKey string

type MockTokenManager_GetToken_Call

type MockTokenManager_GetToken_Call struct {
	*mock.Call
}

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

func (*MockTokenManager_GetToken_Call) Return

func (*MockTokenManager_GetToken_Call) Run

func (*MockTokenManager_GetToken_Call) RunAndReturn

type MockTokenManager_SetToken_Call

type MockTokenManager_SetToken_Call struct {
	*mock.Call
}

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

func (*MockTokenManager_SetToken_Call) Return

func (*MockTokenManager_SetToken_Call) Run

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

func (*MockTokenManager_SetToken_Call) RunAndReturn

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

type MockTokenManager_WaitForAuth_Call

type MockTokenManager_WaitForAuth_Call struct {
	*mock.Call
}

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

func (*MockTokenManager_WaitForAuth_Call) Return

func (*MockTokenManager_WaitForAuth_Call) Run

func (*MockTokenManager_WaitForAuth_Call) RunAndReturn

Jump to

Keyboard shortcuts

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