setup

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEditor added in v0.32.0

type MockEditor struct {
	mock.Mock
}

MockEditor is an autogenerated mock type for the Editor type

func NewMockEditor added in v0.32.0

func NewMockEditor(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEditor

NewMockEditor creates a new instance of MockEditor. 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 (*MockEditor) Apply added in v0.32.0

func (_mock *MockEditor) Apply(changes ...config.Change) error

Apply provides a mock function for the type MockEditor

func (*MockEditor) EXPECT added in v0.32.0

func (_m *MockEditor) EXPECT() *MockEditor_Expecter

func (*MockEditor) Set added in v0.32.0

func (_mock *MockEditor) Set(key string, value any) error

Set provides a mock function for the type MockEditor

func (*MockEditor) View added in v0.32.0

func (_mock *MockEditor) View() *config.View

View provides a mock function for the type MockEditor

type MockEditor_Apply_Call added in v0.32.0

type MockEditor_Apply_Call struct {
	*mock.Call
}

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

func (*MockEditor_Apply_Call) Return added in v0.32.0

func (*MockEditor_Apply_Call) Run added in v0.32.0

func (_c *MockEditor_Apply_Call) Run(run func(changes ...config.Change)) *MockEditor_Apply_Call

func (*MockEditor_Apply_Call) RunAndReturn added in v0.32.0

func (_c *MockEditor_Apply_Call) RunAndReturn(run func(changes ...config.Change) error) *MockEditor_Apply_Call

type MockEditor_Expecter added in v0.32.0

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

func (*MockEditor_Expecter) Apply added in v0.32.0

func (_e *MockEditor_Expecter) Apply(changes ...interface{}) *MockEditor_Apply_Call

Apply is a helper method to define mock.On call

  • changes ...config.Change

func (*MockEditor_Expecter) Set added in v0.32.0

func (_e *MockEditor_Expecter) Set(key interface{}, value interface{}) *MockEditor_Set_Call

Set is a helper method to define mock.On call

  • key string
  • value any

func (*MockEditor_Expecter) View added in v0.32.0

View is a helper method to define mock.On call

type MockEditor_Set_Call added in v0.32.0

type MockEditor_Set_Call struct {
	*mock.Call
}

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

func (*MockEditor_Set_Call) Return added in v0.32.0

func (*MockEditor_Set_Call) Run added in v0.32.0

func (_c *MockEditor_Set_Call) Run(run func(key string, value any)) *MockEditor_Set_Call

func (*MockEditor_Set_Call) RunAndReturn added in v0.32.0

func (_c *MockEditor_Set_Call) RunAndReturn(run func(key string, value any) error) *MockEditor_Set_Call

type MockEditor_View_Call added in v0.32.0

type MockEditor_View_Call struct {
	*mock.Call
}

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

func (*MockEditor_View_Call) Return added in v0.32.0

func (*MockEditor_View_Call) Run added in v0.32.0

func (_c *MockEditor_View_Call) Run(run func()) *MockEditor_View_Call

func (*MockEditor_View_Call) RunAndReturn added in v0.32.0

func (_c *MockEditor_View_Call) RunAndReturn(run func() *config.View) *MockEditor_View_Call

type MockInitialiser

type MockInitialiser struct {
	mock.Mock
}

MockInitialiser is an autogenerated mock type for the Initialiser type

func NewMockInitialiser

func NewMockInitialiser(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockInitialiser

NewMockInitialiser creates a new instance of MockInitialiser. 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 (*MockInitialiser) Configure

func (_mock *MockInitialiser) Configure(ctx context.Context, p *props.Props, cfg setup.Editor) error

Configure provides a mock function for the type MockInitialiser

func (*MockInitialiser) EXPECT

func (*MockInitialiser) IsConfigured

func (_mock *MockInitialiser) IsConfigured(cfg config.Reader) bool

IsConfigured provides a mock function for the type MockInitialiser

func (*MockInitialiser) Name

func (_mock *MockInitialiser) Name() string

Name provides a mock function for the type MockInitialiser

type MockInitialiser_Configure_Call

type MockInitialiser_Configure_Call struct {
	*mock.Call
}

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

func (*MockInitialiser_Configure_Call) Return

func (*MockInitialiser_Configure_Call) Run

func (*MockInitialiser_Configure_Call) RunAndReturn

type MockInitialiser_Expecter

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

func (*MockInitialiser_Expecter) Configure

func (_e *MockInitialiser_Expecter) Configure(ctx interface{}, p interface{}, cfg interface{}) *MockInitialiser_Configure_Call

Configure is a helper method to define mock.On call

  • ctx context.Context
  • p *props.Props
  • cfg setup.Editor

func (*MockInitialiser_Expecter) IsConfigured

func (_e *MockInitialiser_Expecter) IsConfigured(cfg interface{}) *MockInitialiser_IsConfigured_Call

IsConfigured is a helper method to define mock.On call

  • cfg config.Reader

func (*MockInitialiser_Expecter) Name

Name is a helper method to define mock.On call

type MockInitialiser_IsConfigured_Call

type MockInitialiser_IsConfigured_Call struct {
	*mock.Call
}

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

func (*MockInitialiser_IsConfigured_Call) Return

func (*MockInitialiser_IsConfigured_Call) Run

func (*MockInitialiser_IsConfigured_Call) RunAndReturn

type MockInitialiser_Name_Call

type MockInitialiser_Name_Call struct {
	*mock.Call
}

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

func (*MockInitialiser_Name_Call) Return

func (*MockInitialiser_Name_Call) Run

func (*MockInitialiser_Name_Call) RunAndReturn

func (_c *MockInitialiser_Name_Call) RunAndReturn(run func() string) *MockInitialiser_Name_Call

Jump to

Keyboard shortcuts

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