authn

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockJWTVerifier

type MockJWTVerifier struct {
	mock.Mock
}

MockJWTVerifier is an autogenerated mock type for the JWTVerifier type

func NewMockJWTVerifier

func NewMockJWTVerifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockJWTVerifier

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

func (*MockJWTVerifier) Verify

func (_m *MockJWTVerifier) Verify(tokenString string) (uint32, authn.CloseFunc, error)

Verify provides a mock function with given fields: tokenString

type MockJWTVerifier_Expecter

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

func (*MockJWTVerifier_Expecter) Verify

func (_e *MockJWTVerifier_Expecter) Verify(tokenString interface{}) *MockJWTVerifier_Verify_Call

Verify is a helper method to define mock.On call

  • tokenString string

type MockJWTVerifier_Verify_Call

type MockJWTVerifier_Verify_Call struct {
	*mock.Call
}

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

func (*MockJWTVerifier_Verify_Call) Return

func (*MockJWTVerifier_Verify_Call) Run

func (_c *MockJWTVerifier_Verify_Call) Run(run func(tokenString string)) *MockJWTVerifier_Verify_Call

func (*MockJWTVerifier_Verify_Call) RunAndReturn

Jump to

Keyboard shortcuts

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