Movatterモバイル変換


[0]ホーム

URL:


Alert GO-2024-3228: Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect') in github.com/coder/coder
Notice  The highest tagged major version isv2.

ptytest

package
v0.27.3Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License:AGPL-3.0Imports:18Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typePTY

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

funcNew

func New(t *testing.T, opts ...pty.Option) *PTY

func (*PTY)Attachadded inv0.21.0

func (p *PTY) Attach(inv *clibase.Invocation) *PTY

func (*PTY)Closeadded inv0.13.2

func (p *PTY) Close()error

func (*PTY)ExpectMatch

func (e *PTY) ExpectMatch(strstring)string

func (*PTY)ExpectMatchContextadded inv0.15.0

func (e *PTY) ExpectMatchContext(ctxcontext.Context, strstring)string

TODO(mafredri): Rename this to ExpectMatch when refactoring.

func (*PTY)ExpectNoMatchBeforeadded inv0.25.0

func (e *PTY) ExpectNoMatchBefore(ctxcontext.Context, match, beforestring)string

ExpectNoMatchBefore validates that `match` does not occur before `before`.

func (*PTY)Peekadded inv0.15.0

func (e *PTY) Peek(ctxcontext.Context, nint) []byte

func (*PTY)ReadLineadded inv0.13.4

func (e *PTY) ReadLine(ctxcontext.Context)string

func (*PTY)ReadRuneadded inv0.15.0

func (e *PTY) ReadRune(ctxcontext.Context)rune

func (*PTY)Write

func (p *PTY) Write(rrune)

func (*PTY)WriteLine

func (p *PTY) WriteLine(strstring)

typePTYCmdadded inv0.23.0

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

funcStart

func Start(t *testing.T, cmd *pty.Cmd, opts ...pty.StartOption) (*PTYCmd,pty.Process)

Start starts a new process asynchronously and returns a PTYCmd and Process.It kills the process and PTYCmd upon cleanup

func (*PTYCmd)Closeadded inv0.23.0

func (p *PTYCmd) Close()error

func (*PTYCmd)ExpectMatchadded inv0.23.0

func (e *PTYCmd) ExpectMatch(strstring)string

func (*PTYCmd)ExpectMatchContextadded inv0.23.0

func (e *PTYCmd) ExpectMatchContext(ctxcontext.Context, strstring)string

TODO(mafredri): Rename this to ExpectMatch when refactoring.

func (*PTYCmd)ExpectNoMatchBeforeadded inv0.25.0

func (e *PTYCmd) ExpectNoMatchBefore(ctxcontext.Context, match, beforestring)string

ExpectNoMatchBefore validates that `match` does not occur before `before`.

func (*PTYCmd)Peekadded inv0.23.0

func (e *PTYCmd) Peek(ctxcontext.Context, nint) []byte

func (*PTYCmd)ReadLineadded inv0.23.0

func (e *PTYCmd) ReadLine(ctxcontext.Context)string

func (*PTYCmd)ReadRuneadded inv0.23.0

func (e *PTYCmd) ReadRune(ctxcontext.Context)rune

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp