git_mocks

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 2 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 MockContextResolver

type MockContextResolver struct {
	mock.Mock
}

MockContextResolver is an autogenerated mock type for the contextResolver type

func NewMockContextResolver

func NewMockContextResolver(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockContextResolver

NewMockContextResolver creates a new instance of MockContextResolver. 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 (*MockContextResolver) EXPECT

func (*MockContextResolver) Resolve

func (_mock *MockContextResolver) Resolve(ws string, project string) (common.ExecutionContext, error)

Resolve provides a mock function for the type MockContextResolver

type MockContextResolver_Expecter

type MockContextResolver_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockContextResolver_Expecter) Resolve

Resolve is a helper method to define mock.On call

  • ws string
  • project string

type MockContextResolver_Resolve_Call

type MockContextResolver_Resolve_Call struct {
	*mock.Call
}

MockContextResolver_Resolve_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Resolve'

func (*MockContextResolver_Resolve_Call) Return

func (*MockContextResolver_Resolve_Call) Run

func (*MockContextResolver_Resolve_Call) RunAndReturn

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

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

Error provides a mock function for the type MockTui

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

func (_mock *MockTui) RecordIfError(msg string, err error) error

RecordIfError 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_Error_Call

type MockTui_Error_Call struct {
	*mock.Call
}

MockTui_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'

func (*MockTui_Error_Call) Return

func (_c *MockTui_Error_Call) Return() *MockTui_Error_Call

func (*MockTui_Error_Call) Run

func (_c *MockTui_Error_Call) Run(run func(msg ...string)) *MockTui_Error_Call

func (*MockTui_Error_Call) RunAndReturn

func (_c *MockTui_Error_Call) RunAndReturn(run func(msg ...string)) *MockTui_Error_Call

type MockTui_Expecter

type MockTui_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockTui_Expecter) Error

func (_e *MockTui_Expecter) Error(msg ...any) *MockTui_Error_Call

Error is a helper method to define mock.On call

  • msg ...string

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

func (_e *MockTui_Expecter) RecordIfError(msg any, err any) *MockTui_RecordIfError_Call

RecordIfError is a helper method to define mock.On call

  • msg string
  • err error

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_RecordIfError_Call

type MockTui_RecordIfError_Call struct {
	*mock.Call
}

MockTui_RecordIfError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecordIfError'

func (*MockTui_RecordIfError_Call) Return

func (*MockTui_RecordIfError_Call) Run

func (*MockTui_RecordIfError_Call) RunAndReturn

func (_c *MockTui_RecordIfError_Call) RunAndReturn(run func(msg string, err error) error) *MockTui_RecordIfError_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