lvmd

package
v4.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 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 MockConfigurator

type MockConfigurator struct {
	mock.Mock
}

MockConfigurator is an autogenerated mock type for the Configurator type

func NewMockConfigurator

func NewMockConfigurator(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockConfigurator

NewMockConfigurator creates a new instance of MockConfigurator. 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 (*MockConfigurator) Delete

func (_m *MockConfigurator) Delete(ctx context.Context) error

Delete provides a mock function with given fields: ctx

func (*MockConfigurator) EXPECT

func (*MockConfigurator) Load

func (_m *MockConfigurator) Load(ctx context.Context) (*app.Config, error)

Load provides a mock function with given fields: ctx

func (*MockConfigurator) Save

func (_m *MockConfigurator) Save(ctx context.Context, config *app.Config) error

Save provides a mock function with given fields: ctx, config

type MockConfigurator_Delete_Call

type MockConfigurator_Delete_Call struct {
	*mock.Call
}

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

func (*MockConfigurator_Delete_Call) Return

func (*MockConfigurator_Delete_Call) Run

func (*MockConfigurator_Delete_Call) RunAndReturn

type MockConfigurator_Expecter

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

func (*MockConfigurator_Expecter) Delete

func (_e *MockConfigurator_Expecter) Delete(ctx interface{}) *MockConfigurator_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context

func (*MockConfigurator_Expecter) Load

func (_e *MockConfigurator_Expecter) Load(ctx interface{}) *MockConfigurator_Load_Call

Load is a helper method to define mock.On call

  • ctx context.Context

func (*MockConfigurator_Expecter) Save

func (_e *MockConfigurator_Expecter) Save(ctx interface{}, config interface{}) *MockConfigurator_Save_Call

Save is a helper method to define mock.On call

  • ctx context.Context
  • config *app.Config

type MockConfigurator_Load_Call

type MockConfigurator_Load_Call struct {
	*mock.Call
}

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

func (*MockConfigurator_Load_Call) Return

func (*MockConfigurator_Load_Call) Run

func (*MockConfigurator_Load_Call) RunAndReturn

type MockConfigurator_Save_Call

type MockConfigurator_Save_Call struct {
	*mock.Call
}

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

func (*MockConfigurator_Save_Call) Return

func (*MockConfigurator_Save_Call) Run

func (*MockConfigurator_Save_Call) RunAndReturn

Jump to

Keyboard shortcuts

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