console

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

type Console struct {
	*expect.Console
}

func NewConsole

func NewConsole(w io.Writer) (*Console, error)

NewConsole returns a Console for testing PTY handling. All PTY output will be piped to w.

func (*Console) ExpectString

func (c *Console) ExpectString(s string)

func (*Console) Run

func (c *Console) Run(f func(c *Console)) <-chan struct{}

func (*Console) SendLine

func (c *Console) SendLine(s string)

Jump to

Keyboard shortcuts

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