console

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artisan

type Artisan struct {
	mock.Mock
}

Artisan is an autogenerated mock type for the Artisan type

func NewArtisan

func NewArtisan(t interface {
	mock.TestingT
	Cleanup(func())
}) *Artisan

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) Call

func (_m *Artisan) Call(command string)

Call provides a mock function with given fields: command

func (*Artisan) CallAndExit

func (_m *Artisan) CallAndExit(command string)

CallAndExit provides a mock function with given fields: command

func (*Artisan) EXPECT

func (_m *Artisan) EXPECT() *Artisan_Expecter

func (*Artisan) Register

func (_m *Artisan) Register(commands []console.Command)

Register provides a mock function with given fields: commands

func (*Artisan) Run

func (_m *Artisan) Run(args []string, exitIfArtisan bool)

Run provides a mock function with given fields: args, exitIfArtisan

type Artisan_CallAndExit_Call

type Artisan_CallAndExit_Call struct {
	*mock.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 (*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

type Artisan_Call_Call struct {
	*mock.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

type Artisan_Register_Call struct {
	*mock.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 (*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

type Artisan_Run_Call struct {
	*mock.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

type Command struct {
	mock.Mock
}

Command is an autogenerated mock type for the Command type

func NewCommand

func NewCommand(t interface {
	mock.TestingT
	Cleanup(func())
}) *Command

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

func (_m *Command) Description() string

Description provides a mock function with given fields:

func (*Command) EXPECT

func (_m *Command) EXPECT() *Command_Expecter

func (*Command) Extend

func (_m *Command) Extend() command.Extend

Extend provides a mock function with given fields:

func (*Command) Handle

func (_m *Command) Handle(ctx console.Context) error

Handle provides a mock function with given fields: ctx

func (*Command) Signature

func (_m *Command) Signature() string

Signature provides a mock function with given fields:

type Command_Description_Call

type Command_Description_Call struct {
	*mock.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 (*Command_Description_Call) Run

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

type Command_Extend_Call struct {
	*mock.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 (*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

type Command_Handle_Call struct {
	*mock.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 (*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

type Command_Signature_Call struct {
	*mock.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 (*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

type Context struct {
	mock.Mock
}

Context is an autogenerated mock type for the Context type

func NewContext

func NewContext(t interface {
	mock.TestingT
	Cleanup(func())
}) *Context

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) Argument

func (_m *Context) Argument(index int) string

Argument provides a mock function with given fields: index

func (*Context) Arguments

func (_m *Context) Arguments() []string

Arguments provides a mock function with given fields:

func (*Context) Ask

func (_m *Context) Ask(question string, option ...console.AskOption) (string, error)

Ask provides a mock function with given fields: question, option

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) Comment

func (_m *Context) Comment(message string)

Comment provides a mock function with given fields: message

func (*Context) Confirm

func (_m *Context) Confirm(question string, option ...console.ConfirmOption) (bool, error)

Confirm provides a mock function with given fields: question, option

func (*Context) CreateProgressBar

func (_m *Context) CreateProgressBar(total int) console.Progress

CreateProgressBar provides a mock function with given fields: total

func (*Context) EXPECT

func (_m *Context) EXPECT() *Context_Expecter

func (*Context) Error

func (_m *Context) Error(message string)

Error provides a mock function with given fields: message

func (*Context) Info

func (_m *Context) Info(message string)

Info provides a mock function with given fields: message

func (*Context) Line

func (_m *Context) Line(message string)

Line provides a mock function with given fields: message

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) NewLine

func (_m *Context) NewLine(times ...int)

NewLine provides a mock function with given fields: times

func (*Context) Option

func (_m *Context) Option(key string) string

Option provides a mock function with given fields: key

func (*Context) OptionBool

func (_m *Context) OptionBool(key string) bool

OptionBool provides a mock function with given fields: key

func (*Context) OptionFloat64

func (_m *Context) OptionFloat64(key string) float64

OptionFloat64 provides a mock function with given fields: key

func (*Context) OptionFloat64Slice

func (_m *Context) OptionFloat64Slice(key string) []float64

OptionFloat64Slice provides a mock function with given fields: key

func (*Context) OptionInt

func (_m *Context) OptionInt(key string) int

OptionInt provides a mock function with given fields: key

func (*Context) OptionInt64

func (_m *Context) OptionInt64(key string) int64

OptionInt64 provides a mock function with given fields: key

func (*Context) OptionInt64Slice

func (_m *Context) OptionInt64Slice(key string) []int64

OptionInt64Slice provides a mock function with given fields: key

func (*Context) OptionIntSlice

func (_m *Context) OptionIntSlice(key string) []int

OptionIntSlice provides a mock function with given fields: key

func (*Context) OptionSlice

func (_m *Context) OptionSlice(key string) []string

OptionSlice provides a mock function with given fields: key

func (*Context) Secret

func (_m *Context) Secret(question string, option ...console.SecretOption) (string, error)

Secret provides a mock function with given fields: question, option

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) Warning

func (_m *Context) Warning(message string)

Warning provides a mock function with given fields: message

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

type Context_Argument_Call struct {
	*mock.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 (*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

type Context_Arguments_Call struct {
	*mock.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 (*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

type Context_Ask_Call struct {
	*mock.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

type Context_Choice_Call struct {
	*mock.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

type Context_Comment_Call

type Context_Comment_Call struct {
	*mock.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 (*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

type Context_Confirm_Call struct {
	*mock.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

type Context_CreateProgressBar_Call struct {
	*mock.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 (*Context_CreateProgressBar_Call) Run

func (*Context_CreateProgressBar_Call) RunAndReturn

type Context_Error_Call

type Context_Error_Call struct {
	*mock.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

type Context_Info_Call struct {
	*mock.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

type Context_Line_Call struct {
	*mock.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

type Context_MultiSelect_Call struct {
	*mock.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 (*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

type Context_NewLine_Call

type Context_NewLine_Call struct {
	*mock.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 (*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

type Context_OptionBool_Call struct {
	*mock.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 (*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

type Context_OptionFloat64Slice_Call struct {
	*mock.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 (*Context_OptionFloat64Slice_Call) Run

func (*Context_OptionFloat64Slice_Call) RunAndReturn

type Context_OptionFloat64_Call

type Context_OptionFloat64_Call struct {
	*mock.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 (*Context_OptionFloat64_Call) Run

func (*Context_OptionFloat64_Call) RunAndReturn

type Context_OptionInt64Slice_Call

type Context_OptionInt64Slice_Call struct {
	*mock.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 (*Context_OptionInt64Slice_Call) Run

func (*Context_OptionInt64Slice_Call) RunAndReturn

type Context_OptionInt64_Call

type Context_OptionInt64_Call struct {
	*mock.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 (*Context_OptionInt64_Call) Run

func (*Context_OptionInt64_Call) RunAndReturn

func (_c *Context_OptionInt64_Call) RunAndReturn(run func(string) int64) *Context_OptionInt64_Call

type Context_OptionIntSlice_Call

type Context_OptionIntSlice_Call struct {
	*mock.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 (*Context_OptionIntSlice_Call) Run

func (*Context_OptionIntSlice_Call) RunAndReturn

func (_c *Context_OptionIntSlice_Call) RunAndReturn(run func(string) []int) *Context_OptionIntSlice_Call

type Context_OptionInt_Call

type Context_OptionInt_Call struct {
	*mock.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 (*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

type Context_OptionSlice_Call struct {
	*mock.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 (*Context_OptionSlice_Call) Run

func (*Context_OptionSlice_Call) RunAndReturn

func (_c *Context_OptionSlice_Call) RunAndReturn(run func(string) []string) *Context_OptionSlice_Call

type Context_Option_Call

type Context_Option_Call struct {
	*mock.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 (*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

type Context_Secret_Call struct {
	*mock.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

type Context_Spinner_Call struct {
	*mock.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 (*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

type Context_Warning_Call

type Context_Warning_Call struct {
	*mock.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 (*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

type Context_WithProgressBar_Call struct {
	*mock.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

type Progress struct {
	mock.Mock
}

Progress is an autogenerated mock type for the Progress type

func NewProgress

func NewProgress(t interface {
	mock.TestingT
	Cleanup(func())
}) *Progress

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) Advance

func (_m *Progress) Advance(step ...int)

Advance provides a mock function with given fields: step

func (*Progress) EXPECT

func (_m *Progress) EXPECT() *Progress_Expecter

func (*Progress) Finish

func (_m *Progress) Finish() error

Finish provides a mock function with given fields:

func (*Progress) SetTitle

func (_m *Progress) SetTitle(message string)

SetTitle provides a mock function with given fields: message

func (*Progress) ShowElapsedTime

func (_m *Progress) ShowElapsedTime(b ...bool) console.Progress

ShowElapsedTime provides a mock function with given fields: b

func (*Progress) ShowTitle

func (_m *Progress) ShowTitle(b ...bool) console.Progress

ShowTitle provides a mock function with given fields: b

func (*Progress) Start

func (_m *Progress) Start() error

Start provides a mock function with given fields:

type Progress_Advance_Call

type Progress_Advance_Call struct {
	*mock.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 (*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

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

Start is a helper method to define mock.On call

type Progress_Finish_Call

type Progress_Finish_Call struct {
	*mock.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 (*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

type Progress_SetTitle_Call struct {
	*mock.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 (*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

type Progress_ShowElapsedTime_Call struct {
	*mock.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 (*Progress_ShowElapsedTime_Call) Run

func (*Progress_ShowElapsedTime_Call) RunAndReturn

type Progress_ShowTitle_Call

type Progress_ShowTitle_Call struct {
	*mock.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 (*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

type Progress_Start_Call struct {
	*mock.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 (*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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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