mock

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPrompter

type MockPrompter struct {
	mock.Mock
}

MockPrompter is an autogenerated mock type for the Prompter type

func NewMockPrompter

func NewMockPrompter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPrompter

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

func (_m *MockPrompter) EXPECT() *MockPrompter_Expecter

func (*MockPrompter) PromptApply

func (_mock *MockPrompter) PromptApply(existing proto.Message, modified proto.Message, verbose bool) (bool, error)

PromptApply provides a mock function for the type MockPrompter

func (*MockPrompter) PromptYes

func (_mock *MockPrompter) PromptYes(message string) (bool, error)

PromptYes provides a mock function for the type MockPrompter

type MockPrompter_Expecter

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

func (*MockPrompter_Expecter) PromptApply

func (_e *MockPrompter_Expecter) PromptApply(existing interface{}, modified interface{}, verbose interface{}) *MockPrompter_PromptApply_Call

PromptApply is a helper method to define mock.On call

  • existing proto.Message
  • modified proto.Message
  • verbose bool

func (*MockPrompter_Expecter) PromptYes

func (_e *MockPrompter_Expecter) PromptYes(message interface{}) *MockPrompter_PromptYes_Call

PromptYes is a helper method to define mock.On call

  • message string

type MockPrompter_PromptApply_Call

type MockPrompter_PromptApply_Call struct {
	*mock.Call
}

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

func (*MockPrompter_PromptApply_Call) Return

func (*MockPrompter_PromptApply_Call) Run

func (_c *MockPrompter_PromptApply_Call) Run(run func(existing proto.Message, modified proto.Message, verbose bool)) *MockPrompter_PromptApply_Call

func (*MockPrompter_PromptApply_Call) RunAndReturn

func (_c *MockPrompter_PromptApply_Call) RunAndReturn(run func(existing proto.Message, modified proto.Message, verbose bool) (bool, error)) *MockPrompter_PromptApply_Call

type MockPrompter_PromptYes_Call

type MockPrompter_PromptYes_Call struct {
	*mock.Call
}

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

func (*MockPrompter_PromptYes_Call) Return

func (*MockPrompter_PromptYes_Call) Run

func (*MockPrompter_PromptYes_Call) RunAndReturn

func (_c *MockPrompter_PromptYes_Call) RunAndReturn(run func(message string) (bool, error)) *MockPrompter_PromptYes_Call

Jump to

Keyboard shortcuts

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