mocks

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialStore

type CredentialStore struct {
	mock.Mock
}

CredentialStore is an autogenerated mock type for the CredentialStore type

func NewCredentialStore

func NewCredentialStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *CredentialStore

NewCredentialStore creates a new instance of CredentialStore. 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 (*CredentialStore) Clear

func (_m *CredentialStore) Clear() error

Clear provides a mock function with given fields:

func (*CredentialStore) EXPECT

func (*CredentialStore) Get

func (_m *CredentialStore) Get(partitionKey string) ([]byte, error)

Get provides a mock function with given fields: partitionKey

func (*CredentialStore) Set

func (_m *CredentialStore) Set(data []byte, partitionKey string) error

Set provides a mock function with given fields: data, partitionKey

type CredentialStore_Clear_Call

type CredentialStore_Clear_Call struct {
	*mock.Call
}

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

func (*CredentialStore_Clear_Call) Return

func (*CredentialStore_Clear_Call) Run

func (*CredentialStore_Clear_Call) RunAndReturn

func (_c *CredentialStore_Clear_Call) RunAndReturn(run func() error) *CredentialStore_Clear_Call

type CredentialStore_Expecter

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

func (*CredentialStore_Expecter) Clear

Clear is a helper method to define mock.On call

func (*CredentialStore_Expecter) Get

func (_e *CredentialStore_Expecter) Get(partitionKey interface{}) *CredentialStore_Get_Call

Get is a helper method to define mock.On call

  • partitionKey string

func (*CredentialStore_Expecter) Set

func (_e *CredentialStore_Expecter) Set(data interface{}, partitionKey interface{}) *CredentialStore_Set_Call

Set is a helper method to define mock.On call

  • data []byte
  • partitionKey string

type CredentialStore_Get_Call

type CredentialStore_Get_Call struct {
	*mock.Call
}

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

func (*CredentialStore_Get_Call) Return

func (*CredentialStore_Get_Call) Run

func (_c *CredentialStore_Get_Call) Run(run func(partitionKey string)) *CredentialStore_Get_Call

func (*CredentialStore_Get_Call) RunAndReturn

func (_c *CredentialStore_Get_Call) RunAndReturn(run func(string) ([]byte, error)) *CredentialStore_Get_Call

type CredentialStore_Set_Call

type CredentialStore_Set_Call struct {
	*mock.Call
}

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

func (*CredentialStore_Set_Call) Return

func (*CredentialStore_Set_Call) Run

func (_c *CredentialStore_Set_Call) Run(run func(data []byte, partitionKey string)) *CredentialStore_Set_Call

func (*CredentialStore_Set_Call) RunAndReturn

func (_c *CredentialStore_Set_Call) RunAndReturn(run func([]byte, string) error) *CredentialStore_Set_Call

type ExportReplace

type ExportReplace struct {
	mock.Mock
}

ExportReplace is an autogenerated mock type for the ExportReplace type

func NewExportReplace

func NewExportReplace(t interface {
	mock.TestingT
	Cleanup(func())
}) *ExportReplace

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

func (_m *ExportReplace) EXPECT() *ExportReplace_Expecter

func (*ExportReplace) Export

func (_m *ExportReplace) Export(ctx context.Context, _a1 cache.Marshaler, hints cache.ExportHints) error

Export provides a mock function with given fields: ctx, _a1, hints

func (*ExportReplace) Replace

func (_m *ExportReplace) Replace(ctx context.Context, _a1 cache.Unmarshaler, hints cache.ReplaceHints) error

Replace provides a mock function with given fields: ctx, _a1, hints

type ExportReplace_Expecter

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

func (*ExportReplace_Expecter) Export

func (_e *ExportReplace_Expecter) Export(ctx interface{}, _a1 interface{}, hints interface{}) *ExportReplace_Export_Call

Export is a helper method to define mock.On call

  • ctx context.Context
  • _a1 cache.Marshaler
  • hints cache.ExportHints

func (*ExportReplace_Expecter) Replace

func (_e *ExportReplace_Expecter) Replace(ctx interface{}, _a1 interface{}, hints interface{}) *ExportReplace_Replace_Call

Replace is a helper method to define mock.On call

  • ctx context.Context
  • _a1 cache.Unmarshaler
  • hints cache.ReplaceHints

type ExportReplace_Export_Call

type ExportReplace_Export_Call struct {
	*mock.Call
}

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

func (*ExportReplace_Export_Call) Return

func (*ExportReplace_Export_Call) Run

func (*ExportReplace_Export_Call) RunAndReturn

type ExportReplace_Replace_Call

type ExportReplace_Replace_Call struct {
	*mock.Call
}

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

func (*ExportReplace_Replace_Call) Return

func (*ExportReplace_Replace_Call) Run

func (*ExportReplace_Replace_Call) RunAndReturn

type FileSystemOption

type FileSystemOption struct {
	mock.Mock
}

FileSystemOption is an autogenerated mock type for the FileSystemOption type

func NewFileSystemOption

func NewFileSystemOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *FileSystemOption

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

func (*FileSystemOption) Execute

Execute provides a mock function with given fields: _a0

type FileSystemOption_Execute_Call

type FileSystemOption_Execute_Call struct {
	*mock.Call
}

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

func (*FileSystemOption_Execute_Call) Return

func (*FileSystemOption_Execute_Call) Run

func (*FileSystemOption_Execute_Call) RunAndReturn

type FileSystemOption_Expecter

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

func (*FileSystemOption_Expecter) Execute

func (_e *FileSystemOption_Expecter) Execute(_a0 interface{}) *FileSystemOption_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 *credentialstore.FilesystemCredentialStore

type Marshaler

type Marshaler struct {
	mock.Mock
}

Marshaler is an autogenerated mock type for the Marshaler type

func NewMarshaler

func NewMarshaler(t interface {
	mock.TestingT
	Cleanup(func())
}) *Marshaler

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

func (_m *Marshaler) EXPECT() *Marshaler_Expecter

func (*Marshaler) Marshal

func (_m *Marshaler) Marshal() ([]byte, error)

Marshal provides a mock function with given fields:

type Marshaler_Expecter

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

func (*Marshaler_Expecter) Marshal

Marshal is a helper method to define mock.On call

type Marshaler_Marshal_Call

type Marshaler_Marshal_Call struct {
	*mock.Call
}

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

func (*Marshaler_Marshal_Call) Return

func (_c *Marshaler_Marshal_Call) Return(_a0 []byte, _a1 error) *Marshaler_Marshal_Call

func (*Marshaler_Marshal_Call) Run

func (_c *Marshaler_Marshal_Call) Run(run func()) *Marshaler_Marshal_Call

func (*Marshaler_Marshal_Call) RunAndReturn

func (_c *Marshaler_Marshal_Call) RunAndReturn(run func() ([]byte, error)) *Marshaler_Marshal_Call

type Option

type Option struct {
	mock.Mock
}

Option is an autogenerated mock type for the Option type

func NewOption

func NewOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *Option

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

func (_m *Option) EXPECT() *Option_Expecter

func (*Option) Execute

func (_m *Option) Execute(_a0 *tokencache.TokenCache)

Execute provides a mock function with given fields: _a0

type Option_Execute_Call

type Option_Execute_Call struct {
	*mock.Call
}

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

func (*Option_Execute_Call) Return

func (*Option_Execute_Call) Run

func (*Option_Execute_Call) RunAndReturn

func (_c *Option_Execute_Call) RunAndReturn(run func(*tokencache.TokenCache)) *Option_Execute_Call

type Option_Expecter

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

func (*Option_Expecter) Execute

func (_e *Option_Expecter) Execute(_a0 interface{}) *Option_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 *tokencache.TokenCache

type Serializer

type Serializer struct {
	mock.Mock
}

Serializer is an autogenerated mock type for the Serializer type

func NewSerializer

func NewSerializer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Serializer

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

func (_m *Serializer) EXPECT() *Serializer_Expecter

func (*Serializer) Marshal

func (_m *Serializer) Marshal() ([]byte, error)

Marshal provides a mock function with given fields:

func (*Serializer) Unmarshal

func (_m *Serializer) Unmarshal(_a0 []byte) error

Unmarshal provides a mock function with given fields: _a0

type Serializer_Expecter

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

func (*Serializer_Expecter) Marshal

Marshal is a helper method to define mock.On call

func (*Serializer_Expecter) Unmarshal

func (_e *Serializer_Expecter) Unmarshal(_a0 interface{}) *Serializer_Unmarshal_Call

Unmarshal is a helper method to define mock.On call

  • _a0 []byte

type Serializer_Marshal_Call

type Serializer_Marshal_Call struct {
	*mock.Call
}

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

func (*Serializer_Marshal_Call) Return

func (*Serializer_Marshal_Call) Run

func (_c *Serializer_Marshal_Call) Run(run func()) *Serializer_Marshal_Call

func (*Serializer_Marshal_Call) RunAndReturn

func (_c *Serializer_Marshal_Call) RunAndReturn(run func() ([]byte, error)) *Serializer_Marshal_Call

type Serializer_Unmarshal_Call

type Serializer_Unmarshal_Call struct {
	*mock.Call
}

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

func (*Serializer_Unmarshal_Call) Return

func (*Serializer_Unmarshal_Call) Run

func (_c *Serializer_Unmarshal_Call) Run(run func(_a0 []byte)) *Serializer_Unmarshal_Call

func (*Serializer_Unmarshal_Call) RunAndReturn

func (_c *Serializer_Unmarshal_Call) RunAndReturn(run func([]byte) error) *Serializer_Unmarshal_Call

type Unmarshaler

type Unmarshaler struct {
	mock.Mock
}

Unmarshaler is an autogenerated mock type for the Unmarshaler type

func NewUnmarshaler

func NewUnmarshaler(t interface {
	mock.TestingT
	Cleanup(func())
}) *Unmarshaler

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

func (_m *Unmarshaler) EXPECT() *Unmarshaler_Expecter

func (*Unmarshaler) Unmarshal

func (_m *Unmarshaler) Unmarshal(_a0 []byte) error

Unmarshal provides a mock function with given fields: _a0

type Unmarshaler_Expecter

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

func (*Unmarshaler_Expecter) Unmarshal

func (_e *Unmarshaler_Expecter) Unmarshal(_a0 interface{}) *Unmarshaler_Unmarshal_Call

Unmarshal is a helper method to define mock.On call

  • _a0 []byte

type Unmarshaler_Unmarshal_Call

type Unmarshaler_Unmarshal_Call struct {
	*mock.Call
}

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

func (*Unmarshaler_Unmarshal_Call) Return

func (*Unmarshaler_Unmarshal_Call) Run

func (*Unmarshaler_Unmarshal_Call) RunAndReturn

func (_c *Unmarshaler_Unmarshal_Call) RunAndReturn(run func([]byte) error) *Unmarshaler_Unmarshal_Call

Jump to

Keyboard shortcuts

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