mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSealer

type MockSealer struct {
	mock.Mock
}

MockSealer is an autogenerated mock type for the Sealer type

func NewMockSealer

func NewMockSealer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSealer

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

func (_m *MockSealer) EXPECT() *MockSealer_Expecter

func (*MockSealer) Open

func (_mock *MockSealer) Open(sealed string) (string, error)

Open provides a mock function for the type MockSealer

func (*MockSealer) Seal

func (_mock *MockSealer) Seal(plain string) (string, error)

Seal provides a mock function for the type MockSealer

type MockSealer_Expecter

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

func (*MockSealer_Expecter) Open

func (_e *MockSealer_Expecter) Open(sealed any) *MockSealer_Open_Call

Open is a helper method to define mock.On call

  • sealed string

func (*MockSealer_Expecter) Seal

func (_e *MockSealer_Expecter) Seal(plain any) *MockSealer_Seal_Call

Seal is a helper method to define mock.On call

  • plain string

type MockSealer_Open_Call

type MockSealer_Open_Call struct {
	*mock.Call
}

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

func (*MockSealer_Open_Call) Return

func (*MockSealer_Open_Call) Run

func (_c *MockSealer_Open_Call) Run(run func(sealed string)) *MockSealer_Open_Call

func (*MockSealer_Open_Call) RunAndReturn

func (_c *MockSealer_Open_Call) RunAndReturn(run func(sealed string) (string, error)) *MockSealer_Open_Call

type MockSealer_Seal_Call

type MockSealer_Seal_Call struct {
	*mock.Call
}

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

func (*MockSealer_Seal_Call) Return

func (*MockSealer_Seal_Call) Run

func (_c *MockSealer_Seal_Call) Run(run func(plain string)) *MockSealer_Seal_Call

func (*MockSealer_Seal_Call) RunAndReturn

func (_c *MockSealer_Seal_Call) RunAndReturn(run func(plain string) (string, error)) *MockSealer_Seal_Call

type MockStore

type MockStore struct {
	mock.Mock
}

MockStore is an autogenerated mock type for the Store type

func NewMockStore

func NewMockStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStore

NewMockStore creates a new instance of MockStore. 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 (*MockStore) ApplyConfig

func (_mock *MockStore) ApplyConfig(ctx context.Context, c storage.ConfigChange) (int64, error)

ApplyConfig provides a mock function for the type MockStore

func (*MockStore) ConfigState

func (_mock *MockStore) ConfigState(ctx context.Context) (storage.ConfigState, error)

ConfigState provides a mock function for the type MockStore

func (*MockStore) EXPECT

func (_m *MockStore) EXPECT() *MockStore_Expecter

type MockStore_ApplyConfig_Call

type MockStore_ApplyConfig_Call struct {
	*mock.Call
}

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

func (*MockStore_ApplyConfig_Call) Return

func (*MockStore_ApplyConfig_Call) Run

func (*MockStore_ApplyConfig_Call) RunAndReturn

type MockStore_ConfigState_Call

type MockStore_ConfigState_Call struct {
	*mock.Call
}

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

func (*MockStore_ConfigState_Call) Return

func (*MockStore_ConfigState_Call) Run

func (*MockStore_ConfigState_Call) RunAndReturn

type MockStore_Expecter

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

func (*MockStore_Expecter) ApplyConfig

func (_e *MockStore_Expecter) ApplyConfig(ctx any, c any) *MockStore_ApplyConfig_Call

ApplyConfig is a helper method to define mock.On call

  • ctx context.Context
  • c storage.ConfigChange

func (*MockStore_Expecter) ConfigState

func (_e *MockStore_Expecter) ConfigState(ctx any) *MockStore_ConfigState_Call

ConfigState is a helper method to define mock.On call

  • ctx context.Context

Jump to

Keyboard shortcuts

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