mocks

package
v2.15.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prompter

type Prompter struct {
	mock.Mock
}

Prompter is an autogenerated mock type for the Prompter type

func NewPrompter

func NewPrompter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Prompter

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

func (_m *Prompter) IsTerminal() bool

IsTerminal provides a mock function with given fields:

func (*Prompter) PasswordPrompt

func (_m *Prompter) PasswordPrompt(_a0 string) string

PasswordPrompt provides a mock function with given fields: _a0

func (*Prompter) Prompt

func (_m *Prompter) Prompt(_a0 string) string

Prompt 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

type Prompter_IsTerminal_Call struct {
	*mock.Call
}

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 (*Prompter_IsTerminal_Call) Run added in v2.15.0

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

type Prompter_PasswordPrompt_Call struct {
	*mock.Call
}

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 (*Prompter_PasswordPrompt_Call) Run added in v2.15.0

func (*Prompter_PasswordPrompt_Call) RunAndReturn added in v2.15.0

type Prompter_Prompt_Call added in v2.15.0

type Prompter_Prompt_Call struct {
	*mock.Call
}

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 (*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

Jump to

Keyboard shortcuts

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