Help us shape the future of Go! Take the 2026 Go Developer Survey

setup

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 2 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 ...any) *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 any, value any) *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

Jump to

Keyboard shortcuts

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