mocks

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IWindow

type IWindow[T ui.Croppable] struct {
	mock.Mock
}

IWindow is an autogenerated mock type for the IWindow type

func NewIWindow

func NewIWindow[T ui.Croppable](t mockConstructorTestingTNewIWindow) *IWindow[T]

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

func (_m *IWindow[T]) GetFocusedEntry() (*T, error)

GetFocusedEntry provides a mock function with given fields:

func (*IWindow[T]) OnAutocomplete

func (_m *IWindow[T]) OnAutocomplete(_a0 func(string) string)

OnAutocomplete provides a mock function with given fields: _a0

func (*IWindow[T]) OnCommand

func (_m *IWindow[T]) OnCommand(_a0 func(string, ...string))

OnCommand 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

func (_m *IWindow[T]) OnInputChanged(_a0 func(string, []T))

OnInputChanged provides a mock function with given fields: _a0

func (*IWindow[T]) Run

func (_m *IWindow[T]) Run() error

Run provides a mock function with given fields:

func (*IWindow[T]) SetEntries

func (_m *IWindow[T]) SetEntries(entries *[]T)

SetEntries provides a mock function with given fields: entries

func (*IWindow[T]) SetFooterText

func (_m *IWindow[T]) SetFooterText(text string)

SetFooterText provides a mock function with given fields: text

func (*IWindow[T]) SetPreview

func (_m *IWindow[T]) SetPreview(preview string)

SetPreview provides a mock function with given fields: preview

func (*IWindow[T]) SetTitle

func (_m *IWindow[T]) SetTitle(title string)

SetTitle provides a mock function with given fields: title

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

type IWindow_Expecter[T ui.Croppable] struct {
	// contains filtered or unexported fields
}

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

type IWindow_GetFocusedEntry_Call[T ui.Croppable] struct {
	*mock.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 (*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

type IWindow_OnAutocomplete_Call[T ui.Croppable] struct {
	*mock.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 (*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

type IWindow_OnCommand_Call[T ui.Croppable] struct {
	*mock.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

type IWindow_OnEntryFocused_Call[T ui.Croppable] struct {
	*mock.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 (*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

type IWindow_OnEntrySelected_Call[T ui.Croppable] struct {
	*mock.Call
}

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 (*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

type IWindow_OnInputChanged_Call[T ui.Croppable] struct {
	*mock.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 (*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

type IWindow_Run_Call[T ui.Croppable] struct {
	*mock.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

type IWindow_SetEntries_Call[T ui.Croppable] struct {
	*mock.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 (*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

type IWindow_SetFooterText_Call[T ui.Croppable] struct {
	*mock.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 (*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

type IWindow_SetPreview_Call[T ui.Croppable] struct {
	*mock.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 (*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

type IWindow_SetTitle_Call[T ui.Croppable] struct {
	*mock.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

type IWindow_UpdateWith_Call[T ui.Croppable] struct {
	*mock.Call
}

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 (*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]

Jump to

Keyboard shortcuts

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