cli_automator

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIAutomator

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

CLIAutomator - структура для эмуляции ввода/вывода при тестировании CLI

func NewCLIAutomator

func NewCLIAutomator() (*CLIAutomator, error)

NewCLIAutomator создает экземпляр эмулятора CLI для интеграционного тестирования

func (*CLIAutomator) Close

func (a *CLIAutomator) Close()

Close останавливает работу CLIAutomator и восстанавливает стандартные потоки ввода-вывода

func (*CLIAutomator) Run

func (a *CLIAutomator) Run()

Run запускает обработку вывода CLI

func (*CLIAutomator) SendInput

func (a *CLIAutomator) SendInput(input string) error

SendInput отправляет ввод в stdin CLI

func (*CLIAutomator) WaitForOutput

func (a *CLIAutomator) WaitForOutput(ctx context.Context, pattern string, timeout time.Duration) bool

WaitForOutput ожидает указанный вывод в течение таймаута

Jump to

Keyboard shortcuts

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