Documentation ¶
Index ¶
- type IWindow
- func (_m *IWindow[T]) EXPECT() *IWindow_Expecter[T]
- func (_m *IWindow[T]) GetFocusedEntry() (*T, error)
- func (_m *IWindow[T]) OnAutocomplete(_a0 func(string) string)
- func (_m *IWindow[T]) OnCommand(_a0 func(string, ...string))
- func (_m *IWindow[T]) OnEntryFocused(_a0 func(T))
- func (_m *IWindow[T]) OnEntrySelected(_a0 func(T))
- func (_m *IWindow[T]) OnInputChanged(_a0 func(string, []T))
- func (_m *IWindow[T]) Run() error
- func (_m *IWindow[T]) SetEntries(entries *[]T)
- func (_m *IWindow[T]) SetFooterText(text string)
- func (_m *IWindow[T]) SetPreview(preview string)
- func (_m *IWindow[T]) SetTitle(title string)
- func (_m *IWindow[T]) UpdateWith(f func())
- type IWindow_Expecter
- func (_e *IWindow_Expecter[T]) GetFocusedEntry() *IWindow_GetFocusedEntry_Call[T]
- func (_e *IWindow_Expecter[T]) OnAutocomplete(_a0 interface{}) *IWindow_OnAutocomplete_Call[T]
- func (_e *IWindow_Expecter[T]) OnCommand(_a0 interface{}) *IWindow_OnCommand_Call[T]
- func (_e *IWindow_Expecter[T]) OnEntryFocused(_a0 interface{}) *IWindow_OnEntryFocused_Call[T]
- func (_e *IWindow_Expecter[T]) OnEntrySelected(_a0 interface{}) *IWindow_OnEntrySelected_Call[T]
- func (_e *IWindow_Expecter[T]) OnInputChanged(_a0 interface{}) *IWindow_OnInputChanged_Call[T]
- func (_e *IWindow_Expecter[T]) Run() *IWindow_Run_Call[T]
- func (_e *IWindow_Expecter[T]) SetEntries(entries interface{}) *IWindow_SetEntries_Call[T]
- func (_e *IWindow_Expecter[T]) SetFooterText(text interface{}) *IWindow_SetFooterText_Call[T]
- func (_e *IWindow_Expecter[T]) SetPreview(preview interface{}) *IWindow_SetPreview_Call[T]
- func (_e *IWindow_Expecter[T]) SetTitle(title interface{}) *IWindow_SetTitle_Call[T]
- func (_e *IWindow_Expecter[T]) UpdateWith(f interface{}) *IWindow_UpdateWith_Call[T]
- type IWindow_GetFocusedEntry_Call
- func (_c *IWindow_GetFocusedEntry_Call[T]) Return(_a0 *T, _a1 error) *IWindow_GetFocusedEntry_Call[T]
- func (_c *IWindow_GetFocusedEntry_Call[T]) Run(run func()) *IWindow_GetFocusedEntry_Call[T]
- func (_c *IWindow_GetFocusedEntry_Call[T]) RunAndReturn(run func() (*T, error)) *IWindow_GetFocusedEntry_Call[T]
- type IWindow_OnAutocomplete_Call
- func (_c *IWindow_OnAutocomplete_Call[T]) Return() *IWindow_OnAutocomplete_Call[T]
- func (_c *IWindow_OnAutocomplete_Call[T]) Run(run func(_a0 func(string) string)) *IWindow_OnAutocomplete_Call[T]
- func (_c *IWindow_OnAutocomplete_Call[T]) RunAndReturn(run func(func(string) string)) *IWindow_OnAutocomplete_Call[T]
- type IWindow_OnCommand_Call
- type IWindow_OnEntryFocused_Call
- type IWindow_OnEntrySelected_Call
- type IWindow_OnInputChanged_Call
- func (_c *IWindow_OnInputChanged_Call[T]) Return() *IWindow_OnInputChanged_Call[T]
- func (_c *IWindow_OnInputChanged_Call[T]) Run(run func(_a0 func(string, []T))) *IWindow_OnInputChanged_Call[T]
- func (_c *IWindow_OnInputChanged_Call[T]) RunAndReturn(run func(func(string, []T))) *IWindow_OnInputChanged_Call[T]
- type IWindow_Run_Call
- type IWindow_SetEntries_Call
- type IWindow_SetFooterText_Call
- type IWindow_SetPreview_Call
- type IWindow_SetTitle_Call
- type IWindow_UpdateWith_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IWindow ¶
IWindow is an autogenerated mock type for the IWindow type
func NewIWindow ¶
NewIWindow creates a new instance of IWindow. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*IWindow[T]) EXPECT ¶
func (_m *IWindow[T]) EXPECT() *IWindow_Expecter[T]
func (*IWindow[T]) GetFocusedEntry ¶
GetFocusedEntry provides a mock function with given fields:
func (*IWindow[T]) OnAutocomplete ¶
OnAutocomplete provides a mock function with given fields: _a0
func (*IWindow[T]) OnEntryFocused ¶
func (_m *IWindow[T]) OnEntryFocused(_a0 func(T))
OnEntryFocused provides a mock function with given fields: _a0
func (*IWindow[T]) OnEntrySelected ¶ added in v0.10.1
func (_m *IWindow[T]) OnEntrySelected(_a0 func(T))
OnEntrySelected provides a mock function with given fields: _a0
func (*IWindow[T]) OnInputChanged ¶
OnInputChanged provides a mock function with given fields: _a0
func (*IWindow[T]) SetEntries ¶
func (_m *IWindow[T]) SetEntries(entries *[]T)
SetEntries provides a mock function with given fields: entries
func (*IWindow[T]) SetFooterText ¶
SetFooterText provides a mock function with given fields: text
func (*IWindow[T]) SetPreview ¶
SetPreview provides a mock function with given fields: preview
func (*IWindow[T]) UpdateWith ¶ added in v0.10.4
func (_m *IWindow[T]) UpdateWith(f func())
UpdateWith provides a mock function with given fields: f
type IWindow_Expecter ¶
func (*IWindow_Expecter[T]) GetFocusedEntry ¶
func (_e *IWindow_Expecter[T]) GetFocusedEntry() *IWindow_GetFocusedEntry_Call[T]
GetFocusedEntry is a helper method to define mock.On call
func (*IWindow_Expecter[T]) OnAutocomplete ¶
func (_e *IWindow_Expecter[T]) OnAutocomplete(_a0 interface{}) *IWindow_OnAutocomplete_Call[T]
OnAutocomplete is a helper method to define mock.On call
- _a0 func(string) string
func (*IWindow_Expecter[T]) OnCommand ¶
func (_e *IWindow_Expecter[T]) OnCommand(_a0 interface{}) *IWindow_OnCommand_Call[T]
OnCommand is a helper method to define mock.On call
- _a0 func(string , []string)
func (*IWindow_Expecter[T]) OnEntryFocused ¶
func (_e *IWindow_Expecter[T]) OnEntryFocused(_a0 interface{}) *IWindow_OnEntryFocused_Call[T]
OnEntryFocused is a helper method to define mock.On call
- _a0 func(T)
func (*IWindow_Expecter[T]) OnEntrySelected ¶ added in v0.10.1
func (_e *IWindow_Expecter[T]) OnEntrySelected(_a0 interface{}) *IWindow_OnEntrySelected_Call[T]
OnEntrySelected is a helper method to define mock.On call
- _a0 func(T)
func (*IWindow_Expecter[T]) OnInputChanged ¶
func (_e *IWindow_Expecter[T]) OnInputChanged(_a0 interface{}) *IWindow_OnInputChanged_Call[T]
OnInputChanged is a helper method to define mock.On call
- _a0 func(string , []T)
func (*IWindow_Expecter[T]) Run ¶
func (_e *IWindow_Expecter[T]) Run() *IWindow_Run_Call[T]
Run is a helper method to define mock.On call
func (*IWindow_Expecter[T]) SetEntries ¶
func (_e *IWindow_Expecter[T]) SetEntries(entries interface{}) *IWindow_SetEntries_Call[T]
SetEntries is a helper method to define mock.On call
- entries *[]T
func (*IWindow_Expecter[T]) SetFooterText ¶
func (_e *IWindow_Expecter[T]) SetFooterText(text interface{}) *IWindow_SetFooterText_Call[T]
SetFooterText is a helper method to define mock.On call
- text string
func (*IWindow_Expecter[T]) SetPreview ¶
func (_e *IWindow_Expecter[T]) SetPreview(preview interface{}) *IWindow_SetPreview_Call[T]
SetPreview is a helper method to define mock.On call
- preview string
func (*IWindow_Expecter[T]) SetTitle ¶
func (_e *IWindow_Expecter[T]) SetTitle(title interface{}) *IWindow_SetTitle_Call[T]
SetTitle is a helper method to define mock.On call
- title string
func (*IWindow_Expecter[T]) UpdateWith ¶ added in v0.10.4
func (_e *IWindow_Expecter[T]) UpdateWith(f interface{}) *IWindow_UpdateWith_Call[T]
UpdateWith is a helper method to define mock.On call
- f func()
type IWindow_GetFocusedEntry_Call ¶
IWindow_GetFocusedEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFocusedEntry'
func (*IWindow_GetFocusedEntry_Call[T]) Return ¶
func (_c *IWindow_GetFocusedEntry_Call[T]) Return(_a0 *T, _a1 error) *IWindow_GetFocusedEntry_Call[T]
func (*IWindow_GetFocusedEntry_Call[T]) Run ¶
func (_c *IWindow_GetFocusedEntry_Call[T]) Run(run func()) *IWindow_GetFocusedEntry_Call[T]
func (*IWindow_GetFocusedEntry_Call[T]) RunAndReturn ¶ added in v0.10.4
func (_c *IWindow_GetFocusedEntry_Call[T]) RunAndReturn(run func() (*T, error)) *IWindow_GetFocusedEntry_Call[T]
type IWindow_OnAutocomplete_Call ¶
IWindow_OnAutocomplete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnAutocomplete'
func (*IWindow_OnAutocomplete_Call[T]) Return ¶
func (_c *IWindow_OnAutocomplete_Call[T]) Return() *IWindow_OnAutocomplete_Call[T]
func (*IWindow_OnAutocomplete_Call[T]) Run ¶
func (_c *IWindow_OnAutocomplete_Call[T]) Run(run func(_a0 func(string) string)) *IWindow_OnAutocomplete_Call[T]
func (*IWindow_OnAutocomplete_Call[T]) RunAndReturn ¶ added in v0.10.4
func (_c *IWindow_OnAutocomplete_Call[T]) RunAndReturn(run func(func(string) string)) *IWindow_OnAutocomplete_Call[T]
type IWindow_OnCommand_Call ¶
IWindow_OnCommand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnCommand'
func (*IWindow_OnCommand_Call[T]) Return ¶
func (_c *IWindow_OnCommand_Call[T]) Return() *IWindow_OnCommand_Call[T]
func (*IWindow_OnCommand_Call[T]) Run ¶
func (_c *IWindow_OnCommand_Call[T]) Run(run func(_a0 func(string, []string))) *IWindow_OnCommand_Call[T]
func (*IWindow_OnCommand_Call[T]) RunAndReturn ¶ added in v0.10.4
func (_c *IWindow_OnCommand_Call[T]) RunAndReturn(run func(func(string, []string))) *IWindow_OnCommand_Call[T]
type IWindow_OnEntryFocused_Call ¶
IWindow_OnEntryFocused_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnEntryFocused'
func (*IWindow_OnEntryFocused_Call[T]) Return ¶
func (_c *IWindow_OnEntryFocused_Call[T]) Return() *IWindow_OnEntryFocused_Call[T]
func (*IWindow_OnEntryFocused_Call[T]) Run ¶
func (_c *IWindow_OnEntryFocused_Call[T]) Run(run func(_a0 func(T))) *IWindow_OnEntryFocused_Call[T]
func (*IWindow_OnEntryFocused_Call[T]) RunAndReturn ¶ added in v0.10.4
func (_c *IWindow_OnEntryFocused_Call[T]) RunAndReturn(run func(func(T))) *IWindow_OnEntryFocused_Call[T]
type IWindow_OnEntrySelected_Call ¶ added in v0.10.1
IWindow_OnEntrySelected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnEntrySelected'
func (*IWindow_OnEntrySelected_Call[T]) Return ¶ added in v0.10.1
func (_c *IWindow_OnEntrySelected_Call[T]) Return() *IWindow_OnEntrySelected_Call[T]
func (*IWindow_OnEntrySelected_Call[T]) Run ¶ added in v0.10.1
func (_c *IWindow_OnEntrySelected_Call[T]) Run(run func(_a0 func(T))) *IWindow_OnEntrySelected_Call[T]
func (*IWindow_OnEntrySelected_Call[T]) RunAndReturn ¶ added in v0.10.4
func (_c *IWindow_OnEntrySelected_Call[T]) RunAndReturn(run func(func(T))) *IWindow_OnEntrySelected_Call[T]
type IWindow_OnInputChanged_Call ¶
IWindow_OnInputChanged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnInputChanged'
func (*IWindow_OnInputChanged_Call[T]) Return ¶
func (_c *IWindow_OnInputChanged_Call[T]) Return() *IWindow_OnInputChanged_Call[T]
func (*IWindow_OnInputChanged_Call[T]) Run ¶
func (_c *IWindow_OnInputChanged_Call[T]) Run(run func(_a0 func(string, []T))) *IWindow_OnInputChanged_Call[T]
func (*IWindow_OnInputChanged_Call[T]) RunAndReturn ¶ added in v0.10.4
func (_c *IWindow_OnInputChanged_Call[T]) RunAndReturn(run func(func(string, []T))) *IWindow_OnInputChanged_Call[T]
type IWindow_Run_Call ¶
IWindow_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*IWindow_Run_Call[T]) Return ¶
func (_c *IWindow_Run_Call[T]) Return(_a0 error) *IWindow_Run_Call[T]
func (*IWindow_Run_Call[T]) Run ¶
func (_c *IWindow_Run_Call[T]) Run(run func()) *IWindow_Run_Call[T]
func (*IWindow_Run_Call[T]) RunAndReturn ¶ added in v0.10.4
func (_c *IWindow_Run_Call[T]) RunAndReturn(run func() error) *IWindow_Run_Call[T]
type IWindow_SetEntries_Call ¶
IWindow_SetEntries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetEntries'
func (*IWindow_SetEntries_Call[T]) Return ¶
func (_c *IWindow_SetEntries_Call[T]) Return() *IWindow_SetEntries_Call[T]
func (*IWindow_SetEntries_Call[T]) Run ¶
func (_c *IWindow_SetEntries_Call[T]) Run(run func(entries *[]T)) *IWindow_SetEntries_Call[T]
func (*IWindow_SetEntries_Call[T]) RunAndReturn ¶ added in v0.10.4
func (_c *IWindow_SetEntries_Call[T]) RunAndReturn(run func(*[]T)) *IWindow_SetEntries_Call[T]
type IWindow_SetFooterText_Call ¶
IWindow_SetFooterText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFooterText'
func (*IWindow_SetFooterText_Call[T]) Return ¶
func (_c *IWindow_SetFooterText_Call[T]) Return() *IWindow_SetFooterText_Call[T]
func (*IWindow_SetFooterText_Call[T]) Run ¶
func (_c *IWindow_SetFooterText_Call[T]) Run(run func(text string)) *IWindow_SetFooterText_Call[T]
func (*IWindow_SetFooterText_Call[T]) RunAndReturn ¶ added in v0.10.4
func (_c *IWindow_SetFooterText_Call[T]) RunAndReturn(run func(string)) *IWindow_SetFooterText_Call[T]
type IWindow_SetPreview_Call ¶
IWindow_SetPreview_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPreview'
func (*IWindow_SetPreview_Call[T]) Return ¶
func (_c *IWindow_SetPreview_Call[T]) Return() *IWindow_SetPreview_Call[T]
func (*IWindow_SetPreview_Call[T]) Run ¶
func (_c *IWindow_SetPreview_Call[T]) Run(run func(preview string)) *IWindow_SetPreview_Call[T]
func (*IWindow_SetPreview_Call[T]) RunAndReturn ¶ added in v0.10.4
func (_c *IWindow_SetPreview_Call[T]) RunAndReturn(run func(string)) *IWindow_SetPreview_Call[T]
type IWindow_SetTitle_Call ¶
IWindow_SetTitle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTitle'
func (*IWindow_SetTitle_Call[T]) Return ¶
func (_c *IWindow_SetTitle_Call[T]) Return() *IWindow_SetTitle_Call[T]
func (*IWindow_SetTitle_Call[T]) Run ¶
func (_c *IWindow_SetTitle_Call[T]) Run(run func(title string)) *IWindow_SetTitle_Call[T]
func (*IWindow_SetTitle_Call[T]) RunAndReturn ¶ added in v0.10.4
func (_c *IWindow_SetTitle_Call[T]) RunAndReturn(run func(string)) *IWindow_SetTitle_Call[T]
type IWindow_UpdateWith_Call ¶ added in v0.10.4
IWindow_UpdateWith_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateWith'
func (*IWindow_UpdateWith_Call[T]) Return ¶ added in v0.10.4
func (_c *IWindow_UpdateWith_Call[T]) Return() *IWindow_UpdateWith_Call[T]
func (*IWindow_UpdateWith_Call[T]) Run ¶ added in v0.10.4
func (_c *IWindow_UpdateWith_Call[T]) Run(run func(f func())) *IWindow_UpdateWith_Call[T]
func (*IWindow_UpdateWith_Call[T]) RunAndReturn ¶ added in v0.10.4
func (_c *IWindow_UpdateWith_Call[T]) RunAndReturn(run func(func())) *IWindow_UpdateWith_Call[T]