testutil

package
v0.18.19 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectInteractive

func ExpectInteractive(userInput func(*Console), testCli func())

func Stdio

func Stdio(c *expect.Console) terminal.Stdio

Types

type Console

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

func (*Console) Esc

func (c *Console) Esc()

func (*Console) ExpectEOF

func (c *Console) ExpectEOF() string

func (*Console) ExpectString

func (c *Console) ExpectString(s string) string

func (*Console) PressDown

func (c *Console) PressDown()

func (*Console) SendLine

func (c *Console) SendLine(s string) int

Jump to

Keyboard shortcuts

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