Versions in this module Expand all Collapse all v0 v0.1.1 Apr 19, 2026 v0.1.0 Apr 19, 2026 Changes in this version + type PTY struct + func New(t *testing.T, opts ...pty.Option) *PTY + func (e *PTY) ExpectMatch(str string) string + func (e *PTY) ExpectMatchContext(ctx context.Context, str string) string + func (e *PTY) ExpectNoMatchBefore(ctx context.Context, match, before string) string + func (e *PTY) ExpectRegexMatch(str string) string + func (e *PTY) ExpectRegexMatchContext(ctx context.Context, str string) string + func (e *PTY) Peek(ctx context.Context, n int) []byte + func (e *PTY) ReadAll() []byte + func (e *PTY) ReadLine(ctx context.Context) string + func (e *PTY) ReadRune(ctx context.Context) rune + func (p *PTY) Close() error + func (p *PTY) Named(name string) *PTY + func (p *PTY) Write(r rune) + func (p *PTY) WriteLine(str string) + type PTYCmd struct + func Start(t *testing.T, cmd *pty.Cmd, opts ...pty.StartOption) (*PTYCmd, pty.Process) + func (e *PTYCmd) ExpectMatch(str string) string + func (e *PTYCmd) ExpectMatchContext(ctx context.Context, str string) string + func (e *PTYCmd) ExpectNoMatchBefore(ctx context.Context, match, before string) string + func (e *PTYCmd) ExpectRegexMatch(str string) string + func (e *PTYCmd) ExpectRegexMatchContext(ctx context.Context, str string) string + func (e *PTYCmd) Peek(ctx context.Context, n int) []byte + func (e *PTYCmd) ReadAll() []byte + func (e *PTYCmd) ReadLine(ctx context.Context) string + func (e *PTYCmd) ReadRune(ctx context.Context) rune + func (p *PTYCmd) Close() error