mocks

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 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 RegistryMock

type RegistryMock struct {
	mock.Mock
}

RegistryMock is an autogenerated mock type for the Registry type

func NewRegistryMock

func NewRegistryMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *RegistryMock

NewRegistryMock creates a new instance of RegistryMock. 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 (*RegistryMock) AddKeyHolder

func (_m *RegistryMock) AddKeyHolder(kh keyholder.KeyHolder)

AddKeyHolder provides a mock function with given fields: kh

func (*RegistryMock) EXPECT

func (_m *RegistryMock) EXPECT() *RegistryMock_Expecter

func (*RegistryMock) Keys

func (_m *RegistryMock) Keys() []jose.JSONWebKey

Keys provides a mock function with given fields:

type RegistryMock_AddKeyHolder_Call

type RegistryMock_AddKeyHolder_Call struct {
	*mock.Call
}

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

func (*RegistryMock_AddKeyHolder_Call) Return

func (*RegistryMock_AddKeyHolder_Call) Run

func (*RegistryMock_AddKeyHolder_Call) RunAndReturn

type RegistryMock_Expecter

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

func (*RegistryMock_Expecter) AddKeyHolder

func (_e *RegistryMock_Expecter) AddKeyHolder(kh interface{}) *RegistryMock_AddKeyHolder_Call

AddKeyHolder is a helper method to define mock.On call

  • kh keyholder.KeyHolder

func (*RegistryMock_Expecter) Keys

Keys is a helper method to define mock.On call

type RegistryMock_Keys_Call

type RegistryMock_Keys_Call struct {
	*mock.Call
}

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

func (*RegistryMock_Keys_Call) Return

func (*RegistryMock_Keys_Call) Run

func (_c *RegistryMock_Keys_Call) Run(run func()) *RegistryMock_Keys_Call

func (*RegistryMock_Keys_Call) RunAndReturn

func (_c *RegistryMock_Keys_Call) RunAndReturn(run func() []jose.JSONWebKey) *RegistryMock_Keys_Call

Jump to

Keyboard shortcuts

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