term_automator

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TermAutomator

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

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

func NewTermAutomator

func NewTermAutomator() (*TermAutomator, error)

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

func (*TermAutomator) Close

func (a *TermAutomator) Close()

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

func (*TermAutomator) Run

func (a *TermAutomator) Run()

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

func (*TermAutomator) SendInput

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

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

func (*TermAutomator) WaitForOutput

func (a *TermAutomator) 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