mockaction

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

type Console struct {
	mock.Mock
}

Console is an autogenerated mock type for the Console type

func NewConsole

func NewConsole(t mockConstructorTestingTNewConsole) *Console

NewConsole creates a new instance of Console. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Console) Confirm

func (_m *Console) Confirm(s string) bool

Confirm provides a mock function with given fields: s

func (*Console) EXPECT

func (_m *Console) EXPECT() *Console_Expecter

func (*Console) Error

func (_m *Console) Error(message string)

Error provides a mock function with given fields: message

func (*Console) ErrorLn

func (_m *Console) ErrorLn(message string)

ErrorLn provides a mock function with given fields: message

func (*Console) Errorf

func (_m *Console) Errorf(message string, a ...interface{})

Errorf provides a mock function with given fields: message, a

func (*Console) Fatal

func (_m *Console) Fatal(err error)

Fatal provides a mock function with given fields: err

func (*Console) Info

func (_m *Console) Info(message string)

Info provides a mock function with given fields: message

func (*Console) InfoLn

func (_m *Console) InfoLn(message string)

InfoLn provides a mock function with given fields: message

func (*Console) Infof

func (_m *Console) Infof(message string, a ...interface{})

Infof provides a mock function with given fields: message, a

func (*Console) NumberPlural

func (_m *Console) NumberPlural(count int, one string, many string) string

NumberPlural provides a mock function with given fields: count, one, many

func (*Console) Success

func (_m *Console) Success(message string)

Success provides a mock function with given fields: message

func (*Console) SuccessLn

func (_m *Console) SuccessLn(message string)

SuccessLn provides a mock function with given fields: message

func (*Console) Successf

func (_m *Console) Successf(message string, a ...interface{})

Successf provides a mock function with given fields: message, a

func (*Console) Warn

func (_m *Console) Warn(message string)

Warn provides a mock function with given fields: message

func (*Console) WarnLn

func (_m *Console) WarnLn(message string)

WarnLn provides a mock function with given fields: message

func (*Console) Warnf

func (_m *Console) Warnf(message string, a ...interface{})

Warnf provides a mock function with given fields: message, a

type Console_Confirm_Call

type Console_Confirm_Call struct {
	*mock.Call
}

Console_Confirm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Confirm'

func (*Console_Confirm_Call) Return

func (*Console_Confirm_Call) Run

func (_c *Console_Confirm_Call) Run(run func(s string)) *Console_Confirm_Call

func (*Console_Confirm_Call) RunAndReturn

func (_c *Console_Confirm_Call) RunAndReturn(run func(string) bool) *Console_Confirm_Call

type Console_ErrorLn_Call

type Console_ErrorLn_Call struct {
	*mock.Call
}

Console_ErrorLn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ErrorLn'

func (*Console_ErrorLn_Call) Return

func (*Console_ErrorLn_Call) Run

func (_c *Console_ErrorLn_Call) Run(run func(message string)) *Console_ErrorLn_Call

func (*Console_ErrorLn_Call) RunAndReturn

func (_c *Console_ErrorLn_Call) RunAndReturn(run func(string)) *Console_ErrorLn_Call

type Console_Error_Call

type Console_Error_Call struct {
	*mock.Call
}

Console_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'

func (*Console_Error_Call) Return

func (_c *Console_Error_Call) Return() *Console_Error_Call

func (*Console_Error_Call) Run

func (_c *Console_Error_Call) Run(run func(message string)) *Console_Error_Call

func (*Console_Error_Call) RunAndReturn

func (_c *Console_Error_Call) RunAndReturn(run func(string)) *Console_Error_Call

type Console_Errorf_Call

type Console_Errorf_Call struct {
	*mock.Call
}

Console_Errorf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Errorf'

func (*Console_Errorf_Call) Return

func (*Console_Errorf_Call) Run

func (_c *Console_Errorf_Call) Run(run func(message string, a ...interface{})) *Console_Errorf_Call

func (*Console_Errorf_Call) RunAndReturn

func (_c *Console_Errorf_Call) RunAndReturn(run func(string, ...interface{})) *Console_Errorf_Call

type Console_Expecter

type Console_Expecter struct {
	// contains filtered or unexported fields
}

func (*Console_Expecter) Confirm

func (_e *Console_Expecter) Confirm(s interface{}) *Console_Confirm_Call

Confirm is a helper method to define mock.On call

  • s string

func (*Console_Expecter) Error

func (_e *Console_Expecter) Error(message interface{}) *Console_Error_Call

Error is a helper method to define mock.On call

  • message string

func (*Console_Expecter) ErrorLn

func (_e *Console_Expecter) ErrorLn(message interface{}) *Console_ErrorLn_Call

ErrorLn is a helper method to define mock.On call

  • message string

func (*Console_Expecter) Errorf

func (_e *Console_Expecter) Errorf(message interface{}, a ...interface{}) *Console_Errorf_Call

Errorf is a helper method to define mock.On call

  • message string
  • a ...interface{}

func (*Console_Expecter) Fatal

func (_e *Console_Expecter) Fatal(err interface{}) *Console_Fatal_Call

Fatal is a helper method to define mock.On call

  • err error

func (*Console_Expecter) Info

func (_e *Console_Expecter) Info(message interface{}) *Console_Info_Call

Info is a helper method to define mock.On call

  • message string

func (*Console_Expecter) InfoLn

func (_e *Console_Expecter) InfoLn(message interface{}) *Console_InfoLn_Call

InfoLn is a helper method to define mock.On call

  • message string

func (*Console_Expecter) Infof

func (_e *Console_Expecter) Infof(message interface{}, a ...interface{}) *Console_Infof_Call

Infof is a helper method to define mock.On call

  • message string
  • a ...interface{}

func (*Console_Expecter) NumberPlural

func (_e *Console_Expecter) NumberPlural(count interface{}, one interface{}, many interface{}) *Console_NumberPlural_Call

NumberPlural is a helper method to define mock.On call

  • count int
  • one string
  • many string

func (*Console_Expecter) Success

func (_e *Console_Expecter) Success(message interface{}) *Console_Success_Call

Success is a helper method to define mock.On call

  • message string

func (*Console_Expecter) SuccessLn

func (_e *Console_Expecter) SuccessLn(message interface{}) *Console_SuccessLn_Call

SuccessLn is a helper method to define mock.On call

  • message string

func (*Console_Expecter) Successf

func (_e *Console_Expecter) Successf(message interface{}, a ...interface{}) *Console_Successf_Call

Successf is a helper method to define mock.On call

  • message string
  • a ...interface{}

func (*Console_Expecter) Warn

func (_e *Console_Expecter) Warn(message interface{}) *Console_Warn_Call

Warn is a helper method to define mock.On call

  • message string

func (*Console_Expecter) WarnLn

func (_e *Console_Expecter) WarnLn(message interface{}) *Console_WarnLn_Call

WarnLn is a helper method to define mock.On call

  • message string

func (*Console_Expecter) Warnf

func (_e *Console_Expecter) Warnf(message interface{}, a ...interface{}) *Console_Warnf_Call

Warnf is a helper method to define mock.On call

  • message string
  • a ...interface{}

type Console_Fatal_Call

type Console_Fatal_Call struct {
	*mock.Call
}

Console_Fatal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fatal'

func (*Console_Fatal_Call) Return

func (_c *Console_Fatal_Call) Return() *Console_Fatal_Call

func (*Console_Fatal_Call) Run

func (_c *Console_Fatal_Call) Run(run func(err error)) *Console_Fatal_Call

func (*Console_Fatal_Call) RunAndReturn

func (_c *Console_Fatal_Call) RunAndReturn(run func(error)) *Console_Fatal_Call

type Console_InfoLn_Call

type Console_InfoLn_Call struct {
	*mock.Call
}

Console_InfoLn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InfoLn'

func (*Console_InfoLn_Call) Return

func (*Console_InfoLn_Call) Run

func (_c *Console_InfoLn_Call) Run(run func(message string)) *Console_InfoLn_Call

func (*Console_InfoLn_Call) RunAndReturn

func (_c *Console_InfoLn_Call) RunAndReturn(run func(string)) *Console_InfoLn_Call

type Console_Info_Call

type Console_Info_Call struct {
	*mock.Call
}

Console_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'

func (*Console_Info_Call) Return

func (_c *Console_Info_Call) Return() *Console_Info_Call

func (*Console_Info_Call) Run

func (_c *Console_Info_Call) Run(run func(message string)) *Console_Info_Call

func (*Console_Info_Call) RunAndReturn

func (_c *Console_Info_Call) RunAndReturn(run func(string)) *Console_Info_Call

type Console_Infof_Call

type Console_Infof_Call struct {
	*mock.Call
}

Console_Infof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Infof'

func (*Console_Infof_Call) Return

func (_c *Console_Infof_Call) Return() *Console_Infof_Call

func (*Console_Infof_Call) Run

func (_c *Console_Infof_Call) Run(run func(message string, a ...interface{})) *Console_Infof_Call

func (*Console_Infof_Call) RunAndReturn

func (_c *Console_Infof_Call) RunAndReturn(run func(string, ...interface{})) *Console_Infof_Call

type Console_NumberPlural_Call

type Console_NumberPlural_Call struct {
	*mock.Call
}

Console_NumberPlural_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NumberPlural'

func (*Console_NumberPlural_Call) Return

func (*Console_NumberPlural_Call) Run

func (_c *Console_NumberPlural_Call) Run(run func(count int, one string, many string)) *Console_NumberPlural_Call

func (*Console_NumberPlural_Call) RunAndReturn

type Console_SuccessLn_Call

type Console_SuccessLn_Call struct {
	*mock.Call
}

Console_SuccessLn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuccessLn'

func (*Console_SuccessLn_Call) Return

func (*Console_SuccessLn_Call) Run

func (_c *Console_SuccessLn_Call) Run(run func(message string)) *Console_SuccessLn_Call

func (*Console_SuccessLn_Call) RunAndReturn

func (_c *Console_SuccessLn_Call) RunAndReturn(run func(string)) *Console_SuccessLn_Call

type Console_Success_Call

type Console_Success_Call struct {
	*mock.Call
}

Console_Success_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Success'

func (*Console_Success_Call) Return

func (*Console_Success_Call) Run

func (_c *Console_Success_Call) Run(run func(message string)) *Console_Success_Call

func (*Console_Success_Call) RunAndReturn

func (_c *Console_Success_Call) RunAndReturn(run func(string)) *Console_Success_Call

type Console_Successf_Call

type Console_Successf_Call struct {
	*mock.Call
}

Console_Successf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Successf'

func (*Console_Successf_Call) Return

func (*Console_Successf_Call) Run

func (_c *Console_Successf_Call) Run(run func(message string, a ...interface{})) *Console_Successf_Call

func (*Console_Successf_Call) RunAndReturn

func (_c *Console_Successf_Call) RunAndReturn(run func(string, ...interface{})) *Console_Successf_Call

type Console_WarnLn_Call

type Console_WarnLn_Call struct {
	*mock.Call
}

Console_WarnLn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WarnLn'

func (*Console_WarnLn_Call) Return

func (*Console_WarnLn_Call) Run

func (_c *Console_WarnLn_Call) Run(run func(message string)) *Console_WarnLn_Call

func (*Console_WarnLn_Call) RunAndReturn

func (_c *Console_WarnLn_Call) RunAndReturn(run func(string)) *Console_WarnLn_Call

type Console_Warn_Call

type Console_Warn_Call struct {
	*mock.Call
}

Console_Warn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Warn'

func (*Console_Warn_Call) Return

func (_c *Console_Warn_Call) Return() *Console_Warn_Call

func (*Console_Warn_Call) Run

func (_c *Console_Warn_Call) Run(run func(message string)) *Console_Warn_Call

func (*Console_Warn_Call) RunAndReturn

func (_c *Console_Warn_Call) RunAndReturn(run func(string)) *Console_Warn_Call

type Console_Warnf_Call

type Console_Warnf_Call struct {
	*mock.Call
}

Console_Warnf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Warnf'

func (*Console_Warnf_Call) Return

func (_c *Console_Warnf_Call) Return() *Console_Warnf_Call

func (*Console_Warnf_Call) Run

func (_c *Console_Warnf_Call) Run(run func(message string, a ...interface{})) *Console_Warnf_Call

func (*Console_Warnf_Call) RunAndReturn

func (_c *Console_Warnf_Call) RunAndReturn(run func(string, ...interface{})) *Console_Warnf_Call

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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