Documentation ¶
Index ¶
- type Artisan
- type Artisan_CallAndExit_Call
- type Artisan_Call_Call
- type Artisan_Expecter
- func (_e *Artisan_Expecter) Call(command interface{}) *Artisan_Call_Call
- func (_e *Artisan_Expecter) CallAndExit(command interface{}) *Artisan_CallAndExit_Call
- func (_e *Artisan_Expecter) Register(commands interface{}) *Artisan_Register_Call
- func (_e *Artisan_Expecter) Run(args interface{}, exitIfArtisan interface{}) *Artisan_Run_Call
- type Artisan_Register_Call
- type Artisan_Run_Call
- type Command
- type Command_Description_Call
- type Command_Expecter
- type Command_Extend_Call
- type Command_Handle_Call
- type Command_Signature_Call
- type Context
- func (_m *Context) Argument(index int) string
- func (_m *Context) Arguments() []string
- func (_m *Context) Ask(question string, option ...console.AskOption) (string, error)
- func (_m *Context) Choice(question string, options []console.Choice, option ...console.ChoiceOption) (string, error)
- func (_m *Context) Comment(message string)
- func (_m *Context) Confirm(question string, option ...console.ConfirmOption) (bool, error)
- func (_m *Context) CreateProgressBar(total int) console.Progress
- func (_m *Context) EXPECT() *Context_Expecter
- func (_m *Context) Error(message string)
- func (_m *Context) Info(message string)
- func (_m *Context) Line(message string)
- func (_m *Context) MultiSelect(question string, options []console.Choice, option ...console.MultiSelectOption) ([]string, error)
- func (_m *Context) NewLine(times ...int)
- func (_m *Context) Option(key string) string
- func (_m *Context) OptionBool(key string) bool
- func (_m *Context) OptionFloat64(key string) float64
- func (_m *Context) OptionFloat64Slice(key string) []float64
- func (_m *Context) OptionInt(key string) int
- func (_m *Context) OptionInt64(key string) int64
- func (_m *Context) OptionInt64Slice(key string) []int64
- func (_m *Context) OptionIntSlice(key string) []int
- func (_m *Context) OptionSlice(key string) []string
- func (_m *Context) Secret(question string, option ...console.SecretOption) (string, error)
- func (_m *Context) Spinner(message string, option console.SpinnerOption) error
- func (_m *Context) Warning(message string)
- func (_m *Context) WithProgressBar(items []interface{}, callback func(interface{}) error) ([]interface{}, error)
- type Context_Argument_Call
- type Context_Arguments_Call
- type Context_Ask_Call
- type Context_Choice_Call
- type Context_Comment_Call
- type Context_Confirm_Call
- func (_c *Context_Confirm_Call) Return(_a0 bool, _a1 error) *Context_Confirm_Call
- func (_c *Context_Confirm_Call) Run(run func(question string, option ...console.ConfirmOption)) *Context_Confirm_Call
- func (_c *Context_Confirm_Call) RunAndReturn(run func(string, ...console.ConfirmOption) (bool, error)) *Context_Confirm_Call
- type Context_CreateProgressBar_Call
- func (_c *Context_CreateProgressBar_Call) Return(_a0 console.Progress) *Context_CreateProgressBar_Call
- func (_c *Context_CreateProgressBar_Call) Run(run func(total int)) *Context_CreateProgressBar_Call
- func (_c *Context_CreateProgressBar_Call) RunAndReturn(run func(int) console.Progress) *Context_CreateProgressBar_Call
- type Context_Error_Call
- type Context_Expecter
- func (_e *Context_Expecter) Argument(index interface{}) *Context_Argument_Call
- func (_e *Context_Expecter) Arguments() *Context_Arguments_Call
- func (_e *Context_Expecter) Ask(question interface{}, option ...interface{}) *Context_Ask_Call
- func (_e *Context_Expecter) Choice(question interface{}, options interface{}, option ...interface{}) *Context_Choice_Call
- func (_e *Context_Expecter) Comment(message interface{}) *Context_Comment_Call
- func (_e *Context_Expecter) Confirm(question interface{}, option ...interface{}) *Context_Confirm_Call
- func (_e *Context_Expecter) CreateProgressBar(total interface{}) *Context_CreateProgressBar_Call
- func (_e *Context_Expecter) Error(message interface{}) *Context_Error_Call
- func (_e *Context_Expecter) Info(message interface{}) *Context_Info_Call
- func (_e *Context_Expecter) Line(message interface{}) *Context_Line_Call
- func (_e *Context_Expecter) MultiSelect(question interface{}, options interface{}, option ...interface{}) *Context_MultiSelect_Call
- func (_e *Context_Expecter) NewLine(times ...interface{}) *Context_NewLine_Call
- func (_e *Context_Expecter) Option(key interface{}) *Context_Option_Call
- func (_e *Context_Expecter) OptionBool(key interface{}) *Context_OptionBool_Call
- func (_e *Context_Expecter) OptionFloat64(key interface{}) *Context_OptionFloat64_Call
- func (_e *Context_Expecter) OptionFloat64Slice(key interface{}) *Context_OptionFloat64Slice_Call
- func (_e *Context_Expecter) OptionInt(key interface{}) *Context_OptionInt_Call
- func (_e *Context_Expecter) OptionInt64(key interface{}) *Context_OptionInt64_Call
- func (_e *Context_Expecter) OptionInt64Slice(key interface{}) *Context_OptionInt64Slice_Call
- func (_e *Context_Expecter) OptionIntSlice(key interface{}) *Context_OptionIntSlice_Call
- func (_e *Context_Expecter) OptionSlice(key interface{}) *Context_OptionSlice_Call
- func (_e *Context_Expecter) Secret(question interface{}, option ...interface{}) *Context_Secret_Call
- func (_e *Context_Expecter) Spinner(message interface{}, option interface{}) *Context_Spinner_Call
- func (_e *Context_Expecter) Warning(message interface{}) *Context_Warning_Call
- func (_e *Context_Expecter) WithProgressBar(items interface{}, callback interface{}) *Context_WithProgressBar_Call
- type Context_Info_Call
- type Context_Line_Call
- type Context_MultiSelect_Call
- type Context_NewLine_Call
- type Context_OptionBool_Call
- type Context_OptionFloat64Slice_Call
- func (_c *Context_OptionFloat64Slice_Call) Return(_a0 []float64) *Context_OptionFloat64Slice_Call
- func (_c *Context_OptionFloat64Slice_Call) Run(run func(key string)) *Context_OptionFloat64Slice_Call
- func (_c *Context_OptionFloat64Slice_Call) RunAndReturn(run func(string) []float64) *Context_OptionFloat64Slice_Call
- type Context_OptionFloat64_Call
- type Context_OptionInt64Slice_Call
- func (_c *Context_OptionInt64Slice_Call) Return(_a0 []int64) *Context_OptionInt64Slice_Call
- func (_c *Context_OptionInt64Slice_Call) Run(run func(key string)) *Context_OptionInt64Slice_Call
- func (_c *Context_OptionInt64Slice_Call) RunAndReturn(run func(string) []int64) *Context_OptionInt64Slice_Call
- type Context_OptionInt64_Call
- type Context_OptionIntSlice_Call
- type Context_OptionInt_Call
- type Context_OptionSlice_Call
- type Context_Option_Call
- type Context_Secret_Call
- func (_c *Context_Secret_Call) Return(_a0 string, _a1 error) *Context_Secret_Call
- func (_c *Context_Secret_Call) Run(run func(question string, option ...console.SecretOption)) *Context_Secret_Call
- func (_c *Context_Secret_Call) RunAndReturn(run func(string, ...console.SecretOption) (string, error)) *Context_Secret_Call
- type Context_Spinner_Call
- type Context_Warning_Call
- type Context_WithProgressBar_Call
- func (_c *Context_WithProgressBar_Call) Return(_a0 []interface{}, _a1 error) *Context_WithProgressBar_Call
- func (_c *Context_WithProgressBar_Call) Run(run func(items []interface{}, callback func(interface{}) error)) *Context_WithProgressBar_Call
- func (_c *Context_WithProgressBar_Call) RunAndReturn(run func([]interface{}, func(interface{}) error) ([]interface{}, error)) *Context_WithProgressBar_Call
- type Progress
- func (_m *Progress) Advance(step ...int)
- func (_m *Progress) EXPECT() *Progress_Expecter
- func (_m *Progress) Finish() error
- func (_m *Progress) SetTitle(message string)
- func (_m *Progress) ShowElapsedTime(b ...bool) console.Progress
- func (_m *Progress) ShowTitle(b ...bool) console.Progress
- func (_m *Progress) Start() error
- type Progress_Advance_Call
- type Progress_Expecter
- func (_e *Progress_Expecter) Advance(step ...interface{}) *Progress_Advance_Call
- func (_e *Progress_Expecter) Finish() *Progress_Finish_Call
- func (_e *Progress_Expecter) SetTitle(message interface{}) *Progress_SetTitle_Call
- func (_e *Progress_Expecter) ShowElapsedTime(b ...interface{}) *Progress_ShowElapsedTime_Call
- func (_e *Progress_Expecter) ShowTitle(b ...interface{}) *Progress_ShowTitle_Call
- func (_e *Progress_Expecter) Start() *Progress_Start_Call
- type Progress_Finish_Call
- type Progress_SetTitle_Call
- type Progress_ShowElapsedTime_Call
- func (_c *Progress_ShowElapsedTime_Call) Return(_a0 console.Progress) *Progress_ShowElapsedTime_Call
- func (_c *Progress_ShowElapsedTime_Call) Run(run func(b ...bool)) *Progress_ShowElapsedTime_Call
- func (_c *Progress_ShowElapsedTime_Call) RunAndReturn(run func(...bool) console.Progress) *Progress_ShowElapsedTime_Call
- type Progress_ShowTitle_Call
- type Progress_Start_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artisan ¶
Artisan is an autogenerated mock type for the Artisan type
func NewArtisan ¶
NewArtisan creates a new instance of Artisan. 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 (*Artisan) CallAndExit ¶
CallAndExit provides a mock function with given fields: command
func (*Artisan) EXPECT ¶
func (_m *Artisan) EXPECT() *Artisan_Expecter
type Artisan_CallAndExit_Call ¶
Artisan_CallAndExit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallAndExit'
func (*Artisan_CallAndExit_Call) Return ¶
func (_c *Artisan_CallAndExit_Call) Return() *Artisan_CallAndExit_Call
func (*Artisan_CallAndExit_Call) Run ¶
func (_c *Artisan_CallAndExit_Call) Run(run func(command string)) *Artisan_CallAndExit_Call
func (*Artisan_CallAndExit_Call) RunAndReturn ¶
func (_c *Artisan_CallAndExit_Call) RunAndReturn(run func(string)) *Artisan_CallAndExit_Call
type Artisan_Call_Call ¶
Artisan_Call_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Call'
func (*Artisan_Call_Call) Return ¶
func (_c *Artisan_Call_Call) Return() *Artisan_Call_Call
func (*Artisan_Call_Call) Run ¶
func (_c *Artisan_Call_Call) Run(run func(command string)) *Artisan_Call_Call
func (*Artisan_Call_Call) RunAndReturn ¶
func (_c *Artisan_Call_Call) RunAndReturn(run func(string)) *Artisan_Call_Call
type Artisan_Expecter ¶
type Artisan_Expecter struct {
// contains filtered or unexported fields
}
func (*Artisan_Expecter) Call ¶
func (_e *Artisan_Expecter) Call(command interface{}) *Artisan_Call_Call
Call is a helper method to define mock.On call
- command string
func (*Artisan_Expecter) CallAndExit ¶
func (_e *Artisan_Expecter) CallAndExit(command interface{}) *Artisan_CallAndExit_Call
CallAndExit is a helper method to define mock.On call
- command string
func (*Artisan_Expecter) Register ¶
func (_e *Artisan_Expecter) Register(commands interface{}) *Artisan_Register_Call
Register is a helper method to define mock.On call
- commands []console.Command
func (*Artisan_Expecter) Run ¶
func (_e *Artisan_Expecter) Run(args interface{}, exitIfArtisan interface{}) *Artisan_Run_Call
Run is a helper method to define mock.On call
- args []string
- exitIfArtisan bool
type Artisan_Register_Call ¶
Artisan_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*Artisan_Register_Call) Return ¶
func (_c *Artisan_Register_Call) Return() *Artisan_Register_Call
func (*Artisan_Register_Call) Run ¶
func (_c *Artisan_Register_Call) Run(run func(commands []console.Command)) *Artisan_Register_Call
func (*Artisan_Register_Call) RunAndReturn ¶
func (_c *Artisan_Register_Call) RunAndReturn(run func([]console.Command)) *Artisan_Register_Call
type Artisan_Run_Call ¶
Artisan_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*Artisan_Run_Call) Return ¶
func (_c *Artisan_Run_Call) Return() *Artisan_Run_Call
func (*Artisan_Run_Call) Run ¶
func (_c *Artisan_Run_Call) Run(run func(args []string, exitIfArtisan bool)) *Artisan_Run_Call
func (*Artisan_Run_Call) RunAndReturn ¶
func (_c *Artisan_Run_Call) RunAndReturn(run func([]string, bool)) *Artisan_Run_Call
type Command ¶
Command is an autogenerated mock type for the Command type
func NewCommand ¶
NewCommand creates a new instance of Command. 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 (*Command) Description ¶
Description provides a mock function with given fields:
func (*Command) EXPECT ¶
func (_m *Command) EXPECT() *Command_Expecter
type Command_Description_Call ¶
Command_Description_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Description'
func (*Command_Description_Call) Return ¶
func (_c *Command_Description_Call) Return(_a0 string) *Command_Description_Call
func (*Command_Description_Call) Run ¶
func (_c *Command_Description_Call) Run(run func()) *Command_Description_Call
func (*Command_Description_Call) RunAndReturn ¶
func (_c *Command_Description_Call) RunAndReturn(run func() string) *Command_Description_Call
type Command_Expecter ¶
type Command_Expecter struct {
// contains filtered or unexported fields
}
func (*Command_Expecter) Description ¶
func (_e *Command_Expecter) Description() *Command_Description_Call
Description is a helper method to define mock.On call
func (*Command_Expecter) Extend ¶
func (_e *Command_Expecter) Extend() *Command_Extend_Call
Extend is a helper method to define mock.On call
func (*Command_Expecter) Handle ¶
func (_e *Command_Expecter) Handle(ctx interface{}) *Command_Handle_Call
Handle is a helper method to define mock.On call
- ctx console.Context
func (*Command_Expecter) Signature ¶
func (_e *Command_Expecter) Signature() *Command_Signature_Call
Signature is a helper method to define mock.On call
type Command_Extend_Call ¶
Command_Extend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Extend'
func (*Command_Extend_Call) Return ¶
func (_c *Command_Extend_Call) Return(_a0 command.Extend) *Command_Extend_Call
func (*Command_Extend_Call) Run ¶
func (_c *Command_Extend_Call) Run(run func()) *Command_Extend_Call
func (*Command_Extend_Call) RunAndReturn ¶
func (_c *Command_Extend_Call) RunAndReturn(run func() command.Extend) *Command_Extend_Call
type Command_Handle_Call ¶
Command_Handle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Handle'
func (*Command_Handle_Call) Return ¶
func (_c *Command_Handle_Call) Return(_a0 error) *Command_Handle_Call
func (*Command_Handle_Call) Run ¶
func (_c *Command_Handle_Call) Run(run func(ctx console.Context)) *Command_Handle_Call
func (*Command_Handle_Call) RunAndReturn ¶
func (_c *Command_Handle_Call) RunAndReturn(run func(console.Context) error) *Command_Handle_Call
type Command_Signature_Call ¶
Command_Signature_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Signature'
func (*Command_Signature_Call) Return ¶
func (_c *Command_Signature_Call) Return(_a0 string) *Command_Signature_Call
func (*Command_Signature_Call) Run ¶
func (_c *Command_Signature_Call) Run(run func()) *Command_Signature_Call
func (*Command_Signature_Call) RunAndReturn ¶
func (_c *Command_Signature_Call) RunAndReturn(run func() string) *Command_Signature_Call
type Context ¶
Context is an autogenerated mock type for the Context type
func NewContext ¶
NewContext creates a new instance of Context. 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 (*Context) Choice ¶
func (_m *Context) Choice(question string, options []console.Choice, option ...console.ChoiceOption) (string, error)
Choice provides a mock function with given fields: question, options, option
func (*Context) CreateProgressBar ¶
CreateProgressBar provides a mock function with given fields: total
func (*Context) EXPECT ¶
func (_m *Context) EXPECT() *Context_Expecter
func (*Context) MultiSelect ¶
func (_m *Context) MultiSelect(question string, options []console.Choice, option ...console.MultiSelectOption) ([]string, error)
MultiSelect provides a mock function with given fields: question, options, option
func (*Context) OptionBool ¶
OptionBool provides a mock function with given fields: key
func (*Context) OptionFloat64 ¶
OptionFloat64 provides a mock function with given fields: key
func (*Context) OptionFloat64Slice ¶
OptionFloat64Slice provides a mock function with given fields: key
func (*Context) OptionInt64 ¶
OptionInt64 provides a mock function with given fields: key
func (*Context) OptionInt64Slice ¶
OptionInt64Slice provides a mock function with given fields: key
func (*Context) OptionIntSlice ¶
OptionIntSlice provides a mock function with given fields: key
func (*Context) OptionSlice ¶
OptionSlice provides a mock function with given fields: key
func (*Context) Spinner ¶
func (_m *Context) Spinner(message string, option console.SpinnerOption) error
Spinner provides a mock function with given fields: message, option
func (*Context) WithProgressBar ¶
func (_m *Context) WithProgressBar(items []interface{}, callback func(interface{}) error) ([]interface{}, error)
WithProgressBar provides a mock function with given fields: items, callback
type Context_Argument_Call ¶
Context_Argument_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Argument'
func (*Context_Argument_Call) Return ¶
func (_c *Context_Argument_Call) Return(_a0 string) *Context_Argument_Call
func (*Context_Argument_Call) Run ¶
func (_c *Context_Argument_Call) Run(run func(index int)) *Context_Argument_Call
func (*Context_Argument_Call) RunAndReturn ¶
func (_c *Context_Argument_Call) RunAndReturn(run func(int) string) *Context_Argument_Call
type Context_Arguments_Call ¶
Context_Arguments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Arguments'
func (*Context_Arguments_Call) Return ¶
func (_c *Context_Arguments_Call) Return(_a0 []string) *Context_Arguments_Call
func (*Context_Arguments_Call) Run ¶
func (_c *Context_Arguments_Call) Run(run func()) *Context_Arguments_Call
func (*Context_Arguments_Call) RunAndReturn ¶
func (_c *Context_Arguments_Call) RunAndReturn(run func() []string) *Context_Arguments_Call
type Context_Ask_Call ¶
Context_Ask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ask'
func (*Context_Ask_Call) Return ¶
func (_c *Context_Ask_Call) Return(_a0 string, _a1 error) *Context_Ask_Call
func (*Context_Ask_Call) Run ¶
func (_c *Context_Ask_Call) Run(run func(question string, option ...console.AskOption)) *Context_Ask_Call
func (*Context_Ask_Call) RunAndReturn ¶
func (_c *Context_Ask_Call) RunAndReturn(run func(string, ...console.AskOption) (string, error)) *Context_Ask_Call
type Context_Choice_Call ¶
Context_Choice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Choice'
func (*Context_Choice_Call) Return ¶
func (_c *Context_Choice_Call) Return(_a0 string, _a1 error) *Context_Choice_Call
func (*Context_Choice_Call) Run ¶
func (_c *Context_Choice_Call) Run(run func(question string, options []console.Choice, option ...console.ChoiceOption)) *Context_Choice_Call
func (*Context_Choice_Call) RunAndReturn ¶
func (_c *Context_Choice_Call) RunAndReturn(run func(string, []console.Choice, ...console.ChoiceOption) (string, error)) *Context_Choice_Call
type Context_Comment_Call ¶
Context_Comment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Comment'
func (*Context_Comment_Call) Return ¶
func (_c *Context_Comment_Call) Return() *Context_Comment_Call
func (*Context_Comment_Call) Run ¶
func (_c *Context_Comment_Call) Run(run func(message string)) *Context_Comment_Call
func (*Context_Comment_Call) RunAndReturn ¶
func (_c *Context_Comment_Call) RunAndReturn(run func(string)) *Context_Comment_Call
type Context_Confirm_Call ¶
Context_Confirm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Confirm'
func (*Context_Confirm_Call) Return ¶
func (_c *Context_Confirm_Call) Return(_a0 bool, _a1 error) *Context_Confirm_Call
func (*Context_Confirm_Call) Run ¶
func (_c *Context_Confirm_Call) Run(run func(question string, option ...console.ConfirmOption)) *Context_Confirm_Call
func (*Context_Confirm_Call) RunAndReturn ¶
func (_c *Context_Confirm_Call) RunAndReturn(run func(string, ...console.ConfirmOption) (bool, error)) *Context_Confirm_Call
type Context_CreateProgressBar_Call ¶
Context_CreateProgressBar_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateProgressBar'
func (*Context_CreateProgressBar_Call) Return ¶
func (_c *Context_CreateProgressBar_Call) Return(_a0 console.Progress) *Context_CreateProgressBar_Call
func (*Context_CreateProgressBar_Call) Run ¶
func (_c *Context_CreateProgressBar_Call) Run(run func(total int)) *Context_CreateProgressBar_Call
func (*Context_CreateProgressBar_Call) RunAndReturn ¶
func (_c *Context_CreateProgressBar_Call) RunAndReturn(run func(int) console.Progress) *Context_CreateProgressBar_Call
type Context_Error_Call ¶
Context_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'
func (*Context_Error_Call) Return ¶
func (_c *Context_Error_Call) Return() *Context_Error_Call
func (*Context_Error_Call) Run ¶
func (_c *Context_Error_Call) Run(run func(message string)) *Context_Error_Call
func (*Context_Error_Call) RunAndReturn ¶
func (_c *Context_Error_Call) RunAndReturn(run func(string)) *Context_Error_Call
type Context_Expecter ¶
type Context_Expecter struct {
// contains filtered or unexported fields
}
func (*Context_Expecter) Argument ¶
func (_e *Context_Expecter) Argument(index interface{}) *Context_Argument_Call
Argument is a helper method to define mock.On call
- index int
func (*Context_Expecter) Arguments ¶
func (_e *Context_Expecter) Arguments() *Context_Arguments_Call
Arguments is a helper method to define mock.On call
func (*Context_Expecter) Ask ¶
func (_e *Context_Expecter) Ask(question interface{}, option ...interface{}) *Context_Ask_Call
Ask is a helper method to define mock.On call
- question string
- option ...console.AskOption
func (*Context_Expecter) Choice ¶
func (_e *Context_Expecter) Choice(question interface{}, options interface{}, option ...interface{}) *Context_Choice_Call
Choice is a helper method to define mock.On call
- question string
- options []console.Choice
- option ...console.ChoiceOption
func (*Context_Expecter) Comment ¶
func (_e *Context_Expecter) Comment(message interface{}) *Context_Comment_Call
Comment is a helper method to define mock.On call
- message string
func (*Context_Expecter) Confirm ¶
func (_e *Context_Expecter) Confirm(question interface{}, option ...interface{}) *Context_Confirm_Call
Confirm is a helper method to define mock.On call
- question string
- option ...console.ConfirmOption
func (*Context_Expecter) CreateProgressBar ¶
func (_e *Context_Expecter) CreateProgressBar(total interface{}) *Context_CreateProgressBar_Call
CreateProgressBar is a helper method to define mock.On call
- total int
func (*Context_Expecter) Error ¶
func (_e *Context_Expecter) Error(message interface{}) *Context_Error_Call
Error is a helper method to define mock.On call
- message string
func (*Context_Expecter) Info ¶
func (_e *Context_Expecter) Info(message interface{}) *Context_Info_Call
Info is a helper method to define mock.On call
- message string
func (*Context_Expecter) Line ¶
func (_e *Context_Expecter) Line(message interface{}) *Context_Line_Call
Line is a helper method to define mock.On call
- message string
func (*Context_Expecter) MultiSelect ¶
func (_e *Context_Expecter) MultiSelect(question interface{}, options interface{}, option ...interface{}) *Context_MultiSelect_Call
MultiSelect is a helper method to define mock.On call
- question string
- options []console.Choice
- option ...console.MultiSelectOption
func (*Context_Expecter) NewLine ¶
func (_e *Context_Expecter) NewLine(times ...interface{}) *Context_NewLine_Call
NewLine is a helper method to define mock.On call
- times ...int
func (*Context_Expecter) Option ¶
func (_e *Context_Expecter) Option(key interface{}) *Context_Option_Call
Option is a helper method to define mock.On call
- key string
func (*Context_Expecter) OptionBool ¶
func (_e *Context_Expecter) OptionBool(key interface{}) *Context_OptionBool_Call
OptionBool is a helper method to define mock.On call
- key string
func (*Context_Expecter) OptionFloat64 ¶
func (_e *Context_Expecter) OptionFloat64(key interface{}) *Context_OptionFloat64_Call
OptionFloat64 is a helper method to define mock.On call
- key string
func (*Context_Expecter) OptionFloat64Slice ¶
func (_e *Context_Expecter) OptionFloat64Slice(key interface{}) *Context_OptionFloat64Slice_Call
OptionFloat64Slice is a helper method to define mock.On call
- key string
func (*Context_Expecter) OptionInt ¶
func (_e *Context_Expecter) OptionInt(key interface{}) *Context_OptionInt_Call
OptionInt is a helper method to define mock.On call
- key string
func (*Context_Expecter) OptionInt64 ¶
func (_e *Context_Expecter) OptionInt64(key interface{}) *Context_OptionInt64_Call
OptionInt64 is a helper method to define mock.On call
- key string
func (*Context_Expecter) OptionInt64Slice ¶
func (_e *Context_Expecter) OptionInt64Slice(key interface{}) *Context_OptionInt64Slice_Call
OptionInt64Slice is a helper method to define mock.On call
- key string
func (*Context_Expecter) OptionIntSlice ¶
func (_e *Context_Expecter) OptionIntSlice(key interface{}) *Context_OptionIntSlice_Call
OptionIntSlice is a helper method to define mock.On call
- key string
func (*Context_Expecter) OptionSlice ¶
func (_e *Context_Expecter) OptionSlice(key interface{}) *Context_OptionSlice_Call
OptionSlice is a helper method to define mock.On call
- key string
func (*Context_Expecter) Secret ¶
func (_e *Context_Expecter) Secret(question interface{}, option ...interface{}) *Context_Secret_Call
Secret is a helper method to define mock.On call
- question string
- option ...console.SecretOption
func (*Context_Expecter) Spinner ¶
func (_e *Context_Expecter) Spinner(message interface{}, option interface{}) *Context_Spinner_Call
Spinner is a helper method to define mock.On call
- message string
- option console.SpinnerOption
func (*Context_Expecter) Warning ¶
func (_e *Context_Expecter) Warning(message interface{}) *Context_Warning_Call
Warning is a helper method to define mock.On call
- message string
func (*Context_Expecter) WithProgressBar ¶
func (_e *Context_Expecter) WithProgressBar(items interface{}, callback interface{}) *Context_WithProgressBar_Call
WithProgressBar is a helper method to define mock.On call
- items []interface{}
- callback func(interface{}) error
type Context_Info_Call ¶
Context_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'
func (*Context_Info_Call) Return ¶
func (_c *Context_Info_Call) Return() *Context_Info_Call
func (*Context_Info_Call) Run ¶
func (_c *Context_Info_Call) Run(run func(message string)) *Context_Info_Call
func (*Context_Info_Call) RunAndReturn ¶
func (_c *Context_Info_Call) RunAndReturn(run func(string)) *Context_Info_Call
type Context_Line_Call ¶
Context_Line_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Line'
func (*Context_Line_Call) Return ¶
func (_c *Context_Line_Call) Return() *Context_Line_Call
func (*Context_Line_Call) Run ¶
func (_c *Context_Line_Call) Run(run func(message string)) *Context_Line_Call
func (*Context_Line_Call) RunAndReturn ¶
func (_c *Context_Line_Call) RunAndReturn(run func(string)) *Context_Line_Call
type Context_MultiSelect_Call ¶
Context_MultiSelect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultiSelect'
func (*Context_MultiSelect_Call) Return ¶
func (_c *Context_MultiSelect_Call) Return(_a0 []string, _a1 error) *Context_MultiSelect_Call
func (*Context_MultiSelect_Call) Run ¶
func (_c *Context_MultiSelect_Call) Run(run func(question string, options []console.Choice, option ...console.MultiSelectOption)) *Context_MultiSelect_Call
func (*Context_MultiSelect_Call) RunAndReturn ¶
func (_c *Context_MultiSelect_Call) RunAndReturn(run func(string, []console.Choice, ...console.MultiSelectOption) ([]string, error)) *Context_MultiSelect_Call
type Context_NewLine_Call ¶
Context_NewLine_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewLine'
func (*Context_NewLine_Call) Return ¶
func (_c *Context_NewLine_Call) Return() *Context_NewLine_Call
func (*Context_NewLine_Call) Run ¶
func (_c *Context_NewLine_Call) Run(run func(times ...int)) *Context_NewLine_Call
func (*Context_NewLine_Call) RunAndReturn ¶
func (_c *Context_NewLine_Call) RunAndReturn(run func(...int)) *Context_NewLine_Call
type Context_OptionBool_Call ¶
Context_OptionBool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OptionBool'
func (*Context_OptionBool_Call) Return ¶
func (_c *Context_OptionBool_Call) Return(_a0 bool) *Context_OptionBool_Call
func (*Context_OptionBool_Call) Run ¶
func (_c *Context_OptionBool_Call) Run(run func(key string)) *Context_OptionBool_Call
func (*Context_OptionBool_Call) RunAndReturn ¶
func (_c *Context_OptionBool_Call) RunAndReturn(run func(string) bool) *Context_OptionBool_Call
type Context_OptionFloat64Slice_Call ¶
Context_OptionFloat64Slice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OptionFloat64Slice'
func (*Context_OptionFloat64Slice_Call) Return ¶
func (_c *Context_OptionFloat64Slice_Call) Return(_a0 []float64) *Context_OptionFloat64Slice_Call
func (*Context_OptionFloat64Slice_Call) Run ¶
func (_c *Context_OptionFloat64Slice_Call) Run(run func(key string)) *Context_OptionFloat64Slice_Call
func (*Context_OptionFloat64Slice_Call) RunAndReturn ¶
func (_c *Context_OptionFloat64Slice_Call) RunAndReturn(run func(string) []float64) *Context_OptionFloat64Slice_Call
type Context_OptionFloat64_Call ¶
Context_OptionFloat64_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OptionFloat64'
func (*Context_OptionFloat64_Call) Return ¶
func (_c *Context_OptionFloat64_Call) Return(_a0 float64) *Context_OptionFloat64_Call
func (*Context_OptionFloat64_Call) Run ¶
func (_c *Context_OptionFloat64_Call) Run(run func(key string)) *Context_OptionFloat64_Call
func (*Context_OptionFloat64_Call) RunAndReturn ¶
func (_c *Context_OptionFloat64_Call) RunAndReturn(run func(string) float64) *Context_OptionFloat64_Call
type Context_OptionInt64Slice_Call ¶
Context_OptionInt64Slice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OptionInt64Slice'
func (*Context_OptionInt64Slice_Call) Return ¶
func (_c *Context_OptionInt64Slice_Call) Return(_a0 []int64) *Context_OptionInt64Slice_Call
func (*Context_OptionInt64Slice_Call) Run ¶
func (_c *Context_OptionInt64Slice_Call) Run(run func(key string)) *Context_OptionInt64Slice_Call
func (*Context_OptionInt64Slice_Call) RunAndReturn ¶
func (_c *Context_OptionInt64Slice_Call) RunAndReturn(run func(string) []int64) *Context_OptionInt64Slice_Call
type Context_OptionInt64_Call ¶
Context_OptionInt64_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OptionInt64'
func (*Context_OptionInt64_Call) Return ¶
func (_c *Context_OptionInt64_Call) Return(_a0 int64) *Context_OptionInt64_Call
func (*Context_OptionInt64_Call) Run ¶
func (_c *Context_OptionInt64_Call) Run(run func(key string)) *Context_OptionInt64_Call
func (*Context_OptionInt64_Call) RunAndReturn ¶
func (_c *Context_OptionInt64_Call) RunAndReturn(run func(string) int64) *Context_OptionInt64_Call
type Context_OptionIntSlice_Call ¶
Context_OptionIntSlice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OptionIntSlice'
func (*Context_OptionIntSlice_Call) Return ¶
func (_c *Context_OptionIntSlice_Call) Return(_a0 []int) *Context_OptionIntSlice_Call
func (*Context_OptionIntSlice_Call) Run ¶
func (_c *Context_OptionIntSlice_Call) Run(run func(key string)) *Context_OptionIntSlice_Call
func (*Context_OptionIntSlice_Call) RunAndReturn ¶
func (_c *Context_OptionIntSlice_Call) RunAndReturn(run func(string) []int) *Context_OptionIntSlice_Call
type Context_OptionInt_Call ¶
Context_OptionInt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OptionInt'
func (*Context_OptionInt_Call) Return ¶
func (_c *Context_OptionInt_Call) Return(_a0 int) *Context_OptionInt_Call
func (*Context_OptionInt_Call) Run ¶
func (_c *Context_OptionInt_Call) Run(run func(key string)) *Context_OptionInt_Call
func (*Context_OptionInt_Call) RunAndReturn ¶
func (_c *Context_OptionInt_Call) RunAndReturn(run func(string) int) *Context_OptionInt_Call
type Context_OptionSlice_Call ¶
Context_OptionSlice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OptionSlice'
func (*Context_OptionSlice_Call) Return ¶
func (_c *Context_OptionSlice_Call) Return(_a0 []string) *Context_OptionSlice_Call
func (*Context_OptionSlice_Call) Run ¶
func (_c *Context_OptionSlice_Call) Run(run func(key string)) *Context_OptionSlice_Call
func (*Context_OptionSlice_Call) RunAndReturn ¶
func (_c *Context_OptionSlice_Call) RunAndReturn(run func(string) []string) *Context_OptionSlice_Call
type Context_Option_Call ¶
Context_Option_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Option'
func (*Context_Option_Call) Return ¶
func (_c *Context_Option_Call) Return(_a0 string) *Context_Option_Call
func (*Context_Option_Call) Run ¶
func (_c *Context_Option_Call) Run(run func(key string)) *Context_Option_Call
func (*Context_Option_Call) RunAndReturn ¶
func (_c *Context_Option_Call) RunAndReturn(run func(string) string) *Context_Option_Call
type Context_Secret_Call ¶
Context_Secret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Secret'
func (*Context_Secret_Call) Return ¶
func (_c *Context_Secret_Call) Return(_a0 string, _a1 error) *Context_Secret_Call
func (*Context_Secret_Call) Run ¶
func (_c *Context_Secret_Call) Run(run func(question string, option ...console.SecretOption)) *Context_Secret_Call
func (*Context_Secret_Call) RunAndReturn ¶
func (_c *Context_Secret_Call) RunAndReturn(run func(string, ...console.SecretOption) (string, error)) *Context_Secret_Call
type Context_Spinner_Call ¶
Context_Spinner_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Spinner'
func (*Context_Spinner_Call) Return ¶
func (_c *Context_Spinner_Call) Return(_a0 error) *Context_Spinner_Call
func (*Context_Spinner_Call) Run ¶
func (_c *Context_Spinner_Call) Run(run func(message string, option console.SpinnerOption)) *Context_Spinner_Call
func (*Context_Spinner_Call) RunAndReturn ¶
func (_c *Context_Spinner_Call) RunAndReturn(run func(string, console.SpinnerOption) error) *Context_Spinner_Call
type Context_Warning_Call ¶
Context_Warning_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Warning'
func (*Context_Warning_Call) Return ¶
func (_c *Context_Warning_Call) Return() *Context_Warning_Call
func (*Context_Warning_Call) Run ¶
func (_c *Context_Warning_Call) Run(run func(message string)) *Context_Warning_Call
func (*Context_Warning_Call) RunAndReturn ¶
func (_c *Context_Warning_Call) RunAndReturn(run func(string)) *Context_Warning_Call
type Context_WithProgressBar_Call ¶
Context_WithProgressBar_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithProgressBar'
func (*Context_WithProgressBar_Call) Return ¶
func (_c *Context_WithProgressBar_Call) Return(_a0 []interface{}, _a1 error) *Context_WithProgressBar_Call
func (*Context_WithProgressBar_Call) Run ¶
func (_c *Context_WithProgressBar_Call) Run(run func(items []interface{}, callback func(interface{}) error)) *Context_WithProgressBar_Call
func (*Context_WithProgressBar_Call) RunAndReturn ¶
func (_c *Context_WithProgressBar_Call) RunAndReturn(run func([]interface{}, func(interface{}) error) ([]interface{}, error)) *Context_WithProgressBar_Call
type Progress ¶
Progress is an autogenerated mock type for the Progress type
func NewProgress ¶
NewProgress creates a new instance of Progress. 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 (*Progress) EXPECT ¶
func (_m *Progress) EXPECT() *Progress_Expecter
func (*Progress) ShowElapsedTime ¶
ShowElapsedTime provides a mock function with given fields: b
type Progress_Advance_Call ¶
Progress_Advance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Advance'
func (*Progress_Advance_Call) Return ¶
func (_c *Progress_Advance_Call) Return() *Progress_Advance_Call
func (*Progress_Advance_Call) Run ¶
func (_c *Progress_Advance_Call) Run(run func(step ...int)) *Progress_Advance_Call
func (*Progress_Advance_Call) RunAndReturn ¶
func (_c *Progress_Advance_Call) RunAndReturn(run func(...int)) *Progress_Advance_Call
type Progress_Expecter ¶
type Progress_Expecter struct {
// contains filtered or unexported fields
}
func (*Progress_Expecter) Advance ¶
func (_e *Progress_Expecter) Advance(step ...interface{}) *Progress_Advance_Call
Advance is a helper method to define mock.On call
- step ...int
func (*Progress_Expecter) Finish ¶
func (_e *Progress_Expecter) Finish() *Progress_Finish_Call
Finish is a helper method to define mock.On call
func (*Progress_Expecter) SetTitle ¶
func (_e *Progress_Expecter) SetTitle(message interface{}) *Progress_SetTitle_Call
SetTitle is a helper method to define mock.On call
- message string
func (*Progress_Expecter) ShowElapsedTime ¶
func (_e *Progress_Expecter) ShowElapsedTime(b ...interface{}) *Progress_ShowElapsedTime_Call
ShowElapsedTime is a helper method to define mock.On call
- b ...bool
func (*Progress_Expecter) ShowTitle ¶
func (_e *Progress_Expecter) ShowTitle(b ...interface{}) *Progress_ShowTitle_Call
ShowTitle is a helper method to define mock.On call
- b ...bool
func (*Progress_Expecter) Start ¶
func (_e *Progress_Expecter) Start() *Progress_Start_Call
Start is a helper method to define mock.On call
type Progress_Finish_Call ¶
Progress_Finish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Finish'
func (*Progress_Finish_Call) Return ¶
func (_c *Progress_Finish_Call) Return(_a0 error) *Progress_Finish_Call
func (*Progress_Finish_Call) Run ¶
func (_c *Progress_Finish_Call) Run(run func()) *Progress_Finish_Call
func (*Progress_Finish_Call) RunAndReturn ¶
func (_c *Progress_Finish_Call) RunAndReturn(run func() error) *Progress_Finish_Call
type Progress_SetTitle_Call ¶
Progress_SetTitle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTitle'
func (*Progress_SetTitle_Call) Return ¶
func (_c *Progress_SetTitle_Call) Return() *Progress_SetTitle_Call
func (*Progress_SetTitle_Call) Run ¶
func (_c *Progress_SetTitle_Call) Run(run func(message string)) *Progress_SetTitle_Call
func (*Progress_SetTitle_Call) RunAndReturn ¶
func (_c *Progress_SetTitle_Call) RunAndReturn(run func(string)) *Progress_SetTitle_Call
type Progress_ShowElapsedTime_Call ¶
Progress_ShowElapsedTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowElapsedTime'
func (*Progress_ShowElapsedTime_Call) Return ¶
func (_c *Progress_ShowElapsedTime_Call) Return(_a0 console.Progress) *Progress_ShowElapsedTime_Call
func (*Progress_ShowElapsedTime_Call) Run ¶
func (_c *Progress_ShowElapsedTime_Call) Run(run func(b ...bool)) *Progress_ShowElapsedTime_Call
func (*Progress_ShowElapsedTime_Call) RunAndReturn ¶
func (_c *Progress_ShowElapsedTime_Call) RunAndReturn(run func(...bool) console.Progress) *Progress_ShowElapsedTime_Call
type Progress_ShowTitle_Call ¶
Progress_ShowTitle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowTitle'
func (*Progress_ShowTitle_Call) Return ¶
func (_c *Progress_ShowTitle_Call) Return(_a0 console.Progress) *Progress_ShowTitle_Call
func (*Progress_ShowTitle_Call) Run ¶
func (_c *Progress_ShowTitle_Call) Run(run func(b ...bool)) *Progress_ShowTitle_Call
func (*Progress_ShowTitle_Call) RunAndReturn ¶
func (_c *Progress_ShowTitle_Call) RunAndReturn(run func(...bool) console.Progress) *Progress_ShowTitle_Call
type Progress_Start_Call ¶
Progress_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*Progress_Start_Call) Return ¶
func (_c *Progress_Start_Call) Return(_a0 error) *Progress_Start_Call
func (*Progress_Start_Call) Run ¶
func (_c *Progress_Start_Call) Run(run func()) *Progress_Start_Call
func (*Progress_Start_Call) RunAndReturn ¶
func (_c *Progress_Start_Call) RunAndReturn(run func() error) *Progress_Start_Call