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
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
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 (_c *MockEditor_Apply_Call) Return(err error) *MockEditor_Apply_Call
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
func (_e *MockEditor_Expecter) View() *MockEditor_View_Call
View is a helper method to define mock.On call
type MockEditor_Set_Call ¶ added in v0.32.0
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 (_c *MockEditor_Set_Call) Return(err error) *MockEditor_Set_Call
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
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 (_c *MockEditor_View_Call) Return(view *config.View) *MockEditor_View_Call
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