Documentation ¶
Overview ¶
Package mock provides mocks for secretstorage package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Anything = mock.Anything
Anything is an alias of mock.Anything.
var NopKeyring = MockKeyring()
NopKeyring is no mock Keyring.
Functions ¶
This section is empty.
Types ¶
type Keyring ¶
Keyring is an autogenerated mock type for the Keyring type
func NewKeyring ¶
NewKeyring creates a new instance of Keyring. 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.
type KeyringMocker ¶
KeyringMocker is Keyring mocker.
func MockKeyring ¶
func MockKeyring(mocks ...func(k *Keyring)) KeyringMocker
MockKeyring creates Keyring mock with cleanup to ensure all the expectations are met.
type Storage ¶
Storage is an autogenerated mock type for the Storage type
func NewStorage ¶
NewStorage creates a new instance of Storage. 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.
type StorageMocker ¶
StorageMocker is Storage mocker.
func MockStorage ¶
func MockStorage[V any](mocks ...func(s *Storage[V])) StorageMocker[V]
MockStorage creates Storage mock with cleanup to ensure all the expectations are met.