test

package
v0.0.0-...-a1f8bd1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleMock

type ConsoleMock struct {
	mock.Mock
}

func (*ConsoleMock) AlwaysRespondDefault

func (c *ConsoleMock) AlwaysRespondDefault() *ConsoleMock

func (*ConsoleMock) AskQuestion

func (c *ConsoleMock) AskQuestion(question string) (string, error)

func (*ConsoleMock) AskQuestionWithDefault

func (c *ConsoleMock) AskQuestionWithDefault(question string, defaultResponse string) (string, error)

func (*ConsoleMock) AskYesNoQuestionWithDefault

func (c *ConsoleMock) AskYesNoQuestionWithDefault(question string, yes bool) (bool, error)

func (*ConsoleMock) Reader

func (c *ConsoleMock) Reader() util.ConsoleReader

func (*ConsoleMock) SetReader

func (c *ConsoleMock) SetReader(reader util.ConsoleReader)

func (*ConsoleMock) SetWriter

func (c *ConsoleMock) SetWriter(writer util.ConsoleWriter)

func (*ConsoleMock) Writer

func (c *ConsoleMock) Writer() util.ConsoleWriter

type ConsoleReaderMock

type ConsoleReaderMock struct {
	mock.Mock
}

func (*ConsoleReaderMock) ReadLine

func (c *ConsoleReaderMock) ReadLine() (string, error)

func (*ConsoleReaderMock) ReadPassword

func (c *ConsoleReaderMock) ReadPassword() (string, error)

type ConsoleWriterMock

type ConsoleWriterMock struct {
	mock.Mock
}

func (*ConsoleWriterMock) Print

func (c *ConsoleWriterMock) Print(args ...interface{})

func (*ConsoleWriterMock) Println

func (c *ConsoleWriterMock) Println(args ...interface{})

Jump to

Keyboard shortcuts

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