testutil

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const BuildgTestTmpDirEnv = "TEST_BUILDG_TMP_DIR"

Variables

This section is empty.

Functions

func BuildgCmd added in v0.2.0

func BuildgCmd(t *testing.T, args []string, opts ...BuildgCmdOption) *exec.Cmd

func Mirror

func Mirror(ref string) string

func NewTempContext

func NewTempContext(t *testing.T, dt string) (p string, done func() error)

Types

type BuildgCmdOption added in v0.4.0

type BuildgCmdOption func(*buildgCmdOptions)

func WithBuildgCmdEnv added in v0.4.0

func WithBuildgCmdEnv(env ...string) BuildgCmdOption

func WithGlobalOptions added in v0.1.1

func WithGlobalOptions(globalOpts ...string) BuildgCmdOption

type DAPServer added in v0.3.0

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

func NewDAPServer added in v0.3.0

func NewDAPServer(t *testing.T, opts ...DAPServerOption) *DAPServer

func (*DAPServer) Close added in v0.3.0

func (s *DAPServer) Close() (retErr error)

func (*DAPServer) Conn added in v0.3.0

func (s *DAPServer) Conn() net.Conn

func (*DAPServer) Wait added in v0.3.0

func (s *DAPServer) Wait() (retErr error)

type DAPServerOption added in v0.3.0

type DAPServerOption func(*dapOptions)

func WithDAPServerEnv added in v0.3.0

func WithDAPServerEnv(env ...string) DAPServerOption

func WithDAPServerGlobalOptions added in v0.3.0

func WithDAPServerGlobalOptions(globalOpts ...string) DAPServerOption

type DebugShell

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

func NewDebugShell

func NewDebugShell(t *testing.T, buildCtx string, opts ...DebugShellOption) *DebugShell

func (*DebugShell) Close

func (sh *DebugShell) Close(t *testing.T) error

func (*DebugShell) Do

func (sh *DebugShell) Do(args string) *Output

func (*DebugShell) Wait

func (sh *DebugShell) Wait() error

type DebugShellOption added in v0.1.0

type DebugShellOption func(*options)

func WithEnv added in v0.1.0

func WithEnv(env ...string) DebugShellOption

func WithOptions added in v0.1.0

func WithOptions(opts ...string) DebugShellOption

func WithRootDir added in v0.4.0

func WithRootDir(rootDir string) DebugShellOption

type Output

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

func (*Output) Out added in v0.2.0

func (o *Output) Out() string

func (*Output) OutContains

func (o *Output) OutContains(s string) *Output

func (*Output) OutEqual

func (o *Output) OutEqual(s string) *Output

func (*Output) OutNotContains

func (o *Output) OutNotContains(s string) *Output

func (*Output) OutNotEqual added in v0.2.0

func (o *Output) OutNotEqual(s string) *Output

Jump to

Keyboard shortcuts

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