Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prompter ¶
Prompter is an autogenerated mock type for the Prompter type
func NewPrompter ¶
NewPrompter creates a new instance of Prompter. 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 (*Prompter) EXPECT ¶ added in v2.15.0
func (_m *Prompter) EXPECT() *Prompter_Expecter
func (*Prompter) IsTerminal ¶
IsTerminal provides a mock function with given fields:
func (*Prompter) PasswordPrompt ¶
PasswordPrompt provides a mock function with given fields: _a0
type Prompter_Expecter ¶ added in v2.15.0
type Prompter_Expecter struct {
// contains filtered or unexported fields
}
func (*Prompter_Expecter) IsTerminal ¶ added in v2.15.0
func (_e *Prompter_Expecter) IsTerminal() *Prompter_IsTerminal_Call
IsTerminal is a helper method to define mock.On call
func (*Prompter_Expecter) PasswordPrompt ¶ added in v2.15.0
func (_e *Prompter_Expecter) PasswordPrompt(_a0 interface{}) *Prompter_PasswordPrompt_Call
PasswordPrompt is a helper method to define mock.On call
- _a0 string
func (*Prompter_Expecter) Prompt ¶ added in v2.15.0
func (_e *Prompter_Expecter) Prompt(_a0 interface{}) *Prompter_Prompt_Call
Prompt is a helper method to define mock.On call
- _a0 string
type Prompter_IsTerminal_Call ¶ added in v2.15.0
Prompter_IsTerminal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsTerminal'
func (*Prompter_IsTerminal_Call) Return ¶ added in v2.15.0
func (_c *Prompter_IsTerminal_Call) Return(_a0 bool) *Prompter_IsTerminal_Call
func (*Prompter_IsTerminal_Call) Run ¶ added in v2.15.0
func (_c *Prompter_IsTerminal_Call) Run(run func()) *Prompter_IsTerminal_Call
func (*Prompter_IsTerminal_Call) RunAndReturn ¶ added in v2.15.0
func (_c *Prompter_IsTerminal_Call) RunAndReturn(run func() bool) *Prompter_IsTerminal_Call
type Prompter_PasswordPrompt_Call ¶ added in v2.15.0
Prompter_PasswordPrompt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PasswordPrompt'
func (*Prompter_PasswordPrompt_Call) Return ¶ added in v2.15.0
func (_c *Prompter_PasswordPrompt_Call) Return(_a0 string) *Prompter_PasswordPrompt_Call
func (*Prompter_PasswordPrompt_Call) Run ¶ added in v2.15.0
func (_c *Prompter_PasswordPrompt_Call) Run(run func(_a0 string)) *Prompter_PasswordPrompt_Call
func (*Prompter_PasswordPrompt_Call) RunAndReturn ¶ added in v2.15.0
func (_c *Prompter_PasswordPrompt_Call) RunAndReturn(run func(string) string) *Prompter_PasswordPrompt_Call
type Prompter_Prompt_Call ¶ added in v2.15.0
Prompter_Prompt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prompt'
func (*Prompter_Prompt_Call) Return ¶ added in v2.15.0
func (_c *Prompter_Prompt_Call) Return(_a0 string) *Prompter_Prompt_Call
func (*Prompter_Prompt_Call) Run ¶ added in v2.15.0
func (_c *Prompter_Prompt_Call) Run(run func(_a0 string)) *Prompter_Prompt_Call
func (*Prompter_Prompt_Call) RunAndReturn ¶ added in v2.15.0
func (_c *Prompter_Prompt_Call) RunAndReturn(run func(string) string) *Prompter_Prompt_Call