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) 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 ожидает указанный вывод в течение таймаута
Click to show internal directories.
Click to hide internal directories.