Documentation
¶
Index ¶
- type MockTui
- func (_m *MockTui) EXPECT() *MockTui_Expecter
- func (_mock *MockTui) Info(msg ...string)
- func (_mock *MockTui) NewLine()
- func (_mock *MockTui) PresentChoices(opts []string, title string) (string, error)
- func (_mock *MockTui) Success(msg ...string)
- func (_mock *MockTui) Table(header []string, rows [][]string)
- type MockTui_Expecter
- func (_e *MockTui_Expecter) Info(msg ...any) *MockTui_Info_Call
- func (_e *MockTui_Expecter) NewLine() *MockTui_NewLine_Call
- func (_e *MockTui_Expecter) PresentChoices(opts any, title any) *MockTui_PresentChoices_Call
- func (_e *MockTui_Expecter) Success(msg ...any) *MockTui_Success_Call
- func (_e *MockTui_Expecter) Table(header any, rows any) *MockTui_Table_Call
- type MockTui_Info_Call
- type MockTui_NewLine_Call
- type MockTui_PresentChoices_Call
- func (_c *MockTui_PresentChoices_Call) Return(s string, err error) *MockTui_PresentChoices_Call
- func (_c *MockTui_PresentChoices_Call) Run(run func(opts []string, title string)) *MockTui_PresentChoices_Call
- func (_c *MockTui_PresentChoices_Call) RunAndReturn(run func(opts []string, title string) (string, error)) *MockTui_PresentChoices_Call
- type MockTui_Success_Call
- type MockTui_Table_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTui ¶
MockTui is an autogenerated mock type for the tui type
func NewMockTui ¶
NewMockTui creates a new instance of MockTui. 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 (*MockTui) EXPECT ¶
func (_m *MockTui) EXPECT() *MockTui_Expecter
func (*MockTui) NewLine ¶
func (_mock *MockTui) NewLine()
NewLine provides a mock function for the type MockTui
func (*MockTui) PresentChoices ¶
PresentChoices provides a mock function for the type MockTui
type MockTui_Expecter ¶
type MockTui_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTui_Expecter) Info ¶
func (_e *MockTui_Expecter) Info(msg ...any) *MockTui_Info_Call
Info is a helper method to define mock.On call
- msg ...string
func (*MockTui_Expecter) NewLine ¶
func (_e *MockTui_Expecter) NewLine() *MockTui_NewLine_Call
NewLine is a helper method to define mock.On call
func (*MockTui_Expecter) PresentChoices ¶
func (_e *MockTui_Expecter) PresentChoices(opts any, title any) *MockTui_PresentChoices_Call
PresentChoices is a helper method to define mock.On call
- opts []string
- title string
func (*MockTui_Expecter) Success ¶
func (_e *MockTui_Expecter) Success(msg ...any) *MockTui_Success_Call
Success is a helper method to define mock.On call
- msg ...string
func (*MockTui_Expecter) Table ¶
func (_e *MockTui_Expecter) Table(header any, rows any) *MockTui_Table_Call
Table is a helper method to define mock.On call
- header []string
- rows [][]string
type MockTui_Info_Call ¶
MockTui_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'
func (*MockTui_Info_Call) Return ¶
func (_c *MockTui_Info_Call) Return() *MockTui_Info_Call
func (*MockTui_Info_Call) Run ¶
func (_c *MockTui_Info_Call) Run(run func(msg ...string)) *MockTui_Info_Call
func (*MockTui_Info_Call) RunAndReturn ¶
func (_c *MockTui_Info_Call) RunAndReturn(run func(msg ...string)) *MockTui_Info_Call
type MockTui_NewLine_Call ¶
MockTui_NewLine_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewLine'
func (*MockTui_NewLine_Call) Return ¶
func (_c *MockTui_NewLine_Call) Return() *MockTui_NewLine_Call
func (*MockTui_NewLine_Call) Run ¶
func (_c *MockTui_NewLine_Call) Run(run func()) *MockTui_NewLine_Call
func (*MockTui_NewLine_Call) RunAndReturn ¶
func (_c *MockTui_NewLine_Call) RunAndReturn(run func()) *MockTui_NewLine_Call
type MockTui_PresentChoices_Call ¶
MockTui_PresentChoices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PresentChoices'
func (*MockTui_PresentChoices_Call) Return ¶
func (_c *MockTui_PresentChoices_Call) Return(s string, err error) *MockTui_PresentChoices_Call
func (*MockTui_PresentChoices_Call) Run ¶
func (_c *MockTui_PresentChoices_Call) Run(run func(opts []string, title string)) *MockTui_PresentChoices_Call
func (*MockTui_PresentChoices_Call) RunAndReturn ¶
func (_c *MockTui_PresentChoices_Call) RunAndReturn(run func(opts []string, title string) (string, error)) *MockTui_PresentChoices_Call
type MockTui_Success_Call ¶
MockTui_Success_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Success'
func (*MockTui_Success_Call) Return ¶
func (_c *MockTui_Success_Call) Return() *MockTui_Success_Call
func (*MockTui_Success_Call) Run ¶
func (_c *MockTui_Success_Call) Run(run func(msg ...string)) *MockTui_Success_Call
func (*MockTui_Success_Call) RunAndReturn ¶
func (_c *MockTui_Success_Call) RunAndReturn(run func(msg ...string)) *MockTui_Success_Call
type MockTui_Table_Call ¶
MockTui_Table_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Table'
func (*MockTui_Table_Call) Return ¶
func (_c *MockTui_Table_Call) Return() *MockTui_Table_Call
func (*MockTui_Table_Call) Run ¶
func (_c *MockTui_Table_Call) Run(run func(header []string, rows [][]string)) *MockTui_Table_Call
func (*MockTui_Table_Call) RunAndReturn ¶
func (_c *MockTui_Table_Call) RunAndReturn(run func(header []string, rows [][]string)) *MockTui_Table_Call