mocks

package
v0.12.2-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OIDCValidator

type OIDCValidator struct {
	mock.Mock
}

OIDCValidator is an autogenerated mock type for the Validator type

func NewOIDCValidator

func NewOIDCValidator(t mockConstructorTestingTNewOIDCValidator) *OIDCValidator

NewOIDCValidator creates a new instance of OIDCValidator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*OIDCValidator) Validate

func (_m *OIDCValidator) Validate(ctx context.Context, token string, audience string) (*idtoken.Payload, error)

Validate provides a mock function with given fields: ctx, token, audience

Jump to

Keyboard shortcuts

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