ptytest

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PTY

type PTY struct {
	pty.PTY
	// contains filtered or unexported fields
}

func New

func New(t *testing.T) *PTY

func Start

func Start(t *testing.T, cmd *exec.Cmd) (*PTY, *os.Process)

func (*PTY) ExpectMatch

func (p *PTY) ExpectMatch(str string) string

func (*PTY) Write

func (p *PTY) Write(r rune)

func (*PTY) WriteLine

func (p *PTY) WriteLine(str string)

Jump to

Keyboard shortcuts

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