Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prompt ¶
Prompt is an autogenerated mock type for the Prompt type
func NewPrompt ¶
func NewPrompt(t mockConstructorTestingTNewPrompt) *Prompt
NewPrompt creates a new instance of Prompt. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Prompt) EXPECT ¶
func (_m *Prompt) EXPECT() *Prompt_Expecter
type Prompt_Confirm_Call ¶
Prompt_Confirm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Confirm'
func (*Prompt_Confirm_Call) Return ¶
func (_c *Prompt_Confirm_Call) Return(_a0 bool, _a1 error) *Prompt_Confirm_Call
func (*Prompt_Confirm_Call) Run ¶
func (_c *Prompt_Confirm_Call) Run(run func(message string, defaultYes bool)) *Prompt_Confirm_Call
type Prompt_Expecter ¶
type Prompt_Expecter struct {
// contains filtered or unexported fields
}
func (*Prompt_Expecter) Confirm ¶
func (_e *Prompt_Expecter) Confirm(message interface{}, defaultYes interface{}) *Prompt_Confirm_Call
Confirm is a helper method to define mock.On call
- message string
- defaultYes bool
Click to show internal directories.
Click to hide internal directories.