git_mocks

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTui

type MockTui struct {
	mock.Mock
}

MockTui is an autogenerated mock type for the tui type

func NewMockTui

func NewMockTui(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTui

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) Info

func (_mock *MockTui) Info(msg ...string)

Info provides a mock function for the type MockTui

func (*MockTui) NewLine

func (_mock *MockTui) NewLine()

NewLine provides a mock function for the type MockTui

func (*MockTui) PresentChoices

func (_mock *MockTui) PresentChoices(opts []string, title string) (string, error)

PresentChoices provides a mock function for the type MockTui

func (*MockTui) Success

func (_mock *MockTui) Success(msg ...string)

Success provides a mock function for the type MockTui

func (*MockTui) Table

func (_mock *MockTui) Table(header []string, rows [][]string)

Table 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

type MockTui_Info_Call struct {
	*mock.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

type MockTui_NewLine_Call struct {
	*mock.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 (*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

type MockTui_PresentChoices_Call struct {
	*mock.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 (*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

type MockTui_Success_Call struct {
	*mock.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 (*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

type MockTui_Table_Call struct {
	*mock.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

Jump to

Keyboard shortcuts

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