Documentation
¶
Index ¶
- type MockPrompter
- type MockPrompter_Expecter
- type MockPrompter_PromptApply_Call
- func (_c *MockPrompter_PromptApply_Call) Return(b bool, err error) *MockPrompter_PromptApply_Call
- func (_c *MockPrompter_PromptApply_Call) Run(run func(existing proto.Message, modified proto.Message, verbose bool)) *MockPrompter_PromptApply_Call
- func (_c *MockPrompter_PromptApply_Call) RunAndReturn(...) *MockPrompter_PromptApply_Call
- type MockPrompter_PromptYes_Call
- func (_c *MockPrompter_PromptYes_Call) Return(b bool, err error) *MockPrompter_PromptYes_Call
- func (_c *MockPrompter_PromptYes_Call) Run(run func(message string)) *MockPrompter_PromptYes_Call
- func (_c *MockPrompter_PromptYes_Call) RunAndReturn(run func(message string) (bool, error)) *MockPrompter_PromptYes_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPrompter ¶
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
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 ¶
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 (_c *MockPrompter_PromptApply_Call) Return(b bool, err error) *MockPrompter_PromptApply_Call
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 ¶
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 (_c *MockPrompter_PromptYes_Call) Return(b bool, err error) *MockPrompter_PromptYes_Call
func (*MockPrompter_PromptYes_Call) Run ¶
func (_c *MockPrompter_PromptYes_Call) Run(run func(message string)) *MockPrompter_PromptYes_Call
func (*MockPrompter_PromptYes_Call) RunAndReturn ¶
func (_c *MockPrompter_PromptYes_Call) RunAndReturn(run func(message string) (bool, error)) *MockPrompter_PromptYes_Call