mocks

package
v1.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OIDCClient

type OIDCClient struct {
	mock.Mock
}

OIDCClient is an autogenerated mock type for the OIDCClient type

func NewOIDCClient

func NewOIDCClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *OIDCClient

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

func (_m *OIDCClient) EXPECT() *OIDCClient_Expecter

func (*OIDCClient) UserInfo

func (_m *OIDCClient) UserInfo(ctx context.Context, ts oauth2.TokenSource) (*oidc.UserInfo, error)

UserInfo provides a mock function with given fields: ctx, ts

func (*OIDCClient) VerifyAccessToken

func (_m *OIDCClient) VerifyAccessToken(ctx context.Context, token string) (oidc.RegClaimsWithSID, jwt.MapClaims, error)

VerifyAccessToken provides a mock function with given fields: ctx, token

func (*OIDCClient) VerifyLogoutToken

func (_m *OIDCClient) VerifyLogoutToken(ctx context.Context, token string) (*oidc.LogoutToken, error)

VerifyLogoutToken provides a mock function with given fields: ctx, token

type OIDCClient_Expecter

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

func (*OIDCClient_Expecter) UserInfo

func (_e *OIDCClient_Expecter) UserInfo(ctx interface{}, ts interface{}) *OIDCClient_UserInfo_Call

UserInfo is a helper method to define mock.On call

  • ctx context.Context
  • ts oauth2.TokenSource

func (*OIDCClient_Expecter) VerifyAccessToken

func (_e *OIDCClient_Expecter) VerifyAccessToken(ctx interface{}, token interface{}) *OIDCClient_VerifyAccessToken_Call

VerifyAccessToken is a helper method to define mock.On call

  • ctx context.Context
  • token string

func (*OIDCClient_Expecter) VerifyLogoutToken

func (_e *OIDCClient_Expecter) VerifyLogoutToken(ctx interface{}, token interface{}) *OIDCClient_VerifyLogoutToken_Call

VerifyLogoutToken is a helper method to define mock.On call

  • ctx context.Context
  • token string

type OIDCClient_UserInfo_Call

type OIDCClient_UserInfo_Call struct {
	*mock.Call
}

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

func (*OIDCClient_UserInfo_Call) Return

func (*OIDCClient_UserInfo_Call) Run

func (*OIDCClient_UserInfo_Call) RunAndReturn

type OIDCClient_VerifyAccessToken_Call

type OIDCClient_VerifyAccessToken_Call struct {
	*mock.Call
}

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

func (*OIDCClient_VerifyAccessToken_Call) Return

func (*OIDCClient_VerifyAccessToken_Call) Run

func (*OIDCClient_VerifyAccessToken_Call) RunAndReturn

type OIDCClient_VerifyLogoutToken_Call

type OIDCClient_VerifyLogoutToken_Call struct {
	*mock.Call
}

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

func (*OIDCClient_VerifyLogoutToken_Call) Return

func (*OIDCClient_VerifyLogoutToken_Call) Run

func (*OIDCClient_VerifyLogoutToken_Call) RunAndReturn

Jump to

Keyboard shortcuts

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