pkgmocks

package
v1.2.27 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthenticateSource

type MockAuthenticateSource struct {
	mock.Mock
}

MockAuthenticateSource is an autogenerated mock type for the AuthenticateSource type

func NewMockAuthenticateSource

func NewMockAuthenticateSource(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAuthenticateSource

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

func (*MockAuthenticateSource) VerifyClaims

func (_mock *MockAuthenticateSource) VerifyClaims(ctx context.Context, usage models.KeyUsage, accessToken string, options *pkg.VerifyClaimsOptions) (*models0.AccessTokenClaims, error)

VerifyClaims provides a mock function for the type MockAuthenticateSource

type MockAuthenticateSource_Expecter

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

func (*MockAuthenticateSource_Expecter) VerifyClaims

func (_e *MockAuthenticateSource_Expecter) VerifyClaims(ctx interface{}, usage interface{}, accessToken interface{}, options interface{}) *MockAuthenticateSource_VerifyClaims_Call

VerifyClaims is a helper method to define mock.On call

  • ctx context.Context
  • usage models.KeyUsage
  • accessToken string
  • options *pkg.VerifyClaimsOptions

type MockAuthenticateSource_VerifyClaims_Call

type MockAuthenticateSource_VerifyClaims_Call struct {
	*mock.Call
}

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

func (*MockAuthenticateSource_VerifyClaims_Call) Return

func (*MockAuthenticateSource_VerifyClaims_Call) Run

func (*MockAuthenticateSource_VerifyClaims_Call) RunAndReturn

type MockToken

type MockToken struct {
	mock.Mock
}

MockToken is an autogenerated mock type for the Token type

func NewMockToken

func NewMockToken(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockToken

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

func (_m *MockToken) EXPECT() *MockToken_Expecter

func (*MockToken) GetRoles

func (_mock *MockToken) GetRoles() []string

GetRoles provides a mock function for the type MockToken

func (*MockToken) GetToken

func (_mock *MockToken) GetToken() string

GetToken provides a mock function for the type MockToken

type MockToken_Expecter

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

func (*MockToken_Expecter) GetRoles

GetRoles is a helper method to define mock.On call

func (*MockToken_Expecter) GetToken

GetToken is a helper method to define mock.On call

type MockToken_GetRoles_Call

type MockToken_GetRoles_Call struct {
	*mock.Call
}

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

func (*MockToken_GetRoles_Call) Return

func (*MockToken_GetRoles_Call) Run

func (_c *MockToken_GetRoles_Call) Run(run func()) *MockToken_GetRoles_Call

func (*MockToken_GetRoles_Call) RunAndReturn

func (_c *MockToken_GetRoles_Call) RunAndReturn(run func() []string) *MockToken_GetRoles_Call

type MockToken_GetToken_Call

type MockToken_GetToken_Call struct {
	*mock.Call
}

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

func (*MockToken_GetToken_Call) Return

func (*MockToken_GetToken_Call) Run

func (_c *MockToken_GetToken_Call) Run(run func()) *MockToken_GetToken_Call

func (*MockToken_GetToken_Call) RunAndReturn

func (_c *MockToken_GetToken_Call) RunAndReturn(run func() string) *MockToken_GetToken_Call

Jump to

Keyboard shortcuts

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