mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2025 License: Apache-2.0 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 added in v0.2.2

type Prompter struct {
	mock.Mock
}

Prompter is an autogenerated mock type for the Prompter type

func NewPrompter added in v0.2.2

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) Confirm added in v0.2.2

func (_m *Prompter) Confirm(prompt string) (bool, error)

Confirm provides a mock function with given fields: prompt

func (*Prompter) InputHiddenString added in v0.2.2

func (_m *Prompter) InputHiddenString(prompt string, help string, validator func(string) error) (string, error)

InputHiddenString provides a mock function with given fields: prompt, help, validator

func (*Prompter) InputInteger added in v0.2.2

func (_m *Prompter) InputInteger(prompt string, defValue string, help string, validator func(int64) error) (int64, error)

InputInteger provides a mock function with given fields: prompt, defValue, help, validator

func (*Prompter) InputString added in v0.2.2

func (_m *Prompter) InputString(prompt string, defValue string, help string, validator func(string) error) (string, error)

InputString provides a mock function with given fields: prompt, defValue, help, validator

func (*Prompter) Select added in v0.2.2

func (_m *Prompter) Select(prompt string, options []string) (string, error)

Select provides a mock function with given fields: prompt, options

Jump to

Keyboard shortcuts

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