mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BashCommandMock

type BashCommandMock struct{}

func (BashCommandMock) Exec

func (cmd BashCommandMock) Exec(command string) (string, *bash.CommandError)

type InputPromptMock

type InputPromptMock struct {
	mock.Mock
}

func (*InputPromptMock) GetInput

func (p *InputPromptMock) GetInput(inputLabel string, validate promptui.ValidateFunc) string

func (*InputPromptMock) GetSelect

func (p *InputPromptMock) GetSelect(inputLabel string, options []string) string

func (*InputPromptMock) GetSelectWithAdd

func (p *InputPromptMock) GetSelectWithAdd(inputLabel string, options []string) string

Jump to

Keyboard shortcuts

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