expectUtils

package
v0.0.0-...-4ae83c4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTimeout = 60 * time.Second

DefaultTimeout is the default Expect timeout.

Variables

This section is empty.

Functions

This section is empty.

Types

type GExpect

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

GExpect implements the Expecter interface.

func Spawn

func Spawn(cmdStr string, timeout time.Duration) (expect *GExpect, err error)

func (*GExpect) Close

func (e *GExpect) Close() (err error)

func (*GExpect) Expect

func (e *GExpect) Expect(expect *regexp.Regexp, timeout time.Duration) (out string, err error)

func (*GExpect) Send

func (e *GExpect) Send(msg string) (err error)

Jump to

Keyboard shortcuts

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