Documentation ¶
Rendered for windows/amd64
Overview ¶
This package provides testing wrappers around github.com/Microsoft/hcsshim/internal/cmd
Index ¶
- Constants
- func Create(ctx context.Context, _ testing.TB, c cow.ProcessHost, p *specs.Process, ...) *cmd.Cmd
- func Kill(ctx context.Context, tb testing.TB, c *cmd.Cmd)
- func Run(ctx context.Context, tb testing.TB, c *cmd.Cmd) int
- func Start(_ context.Context, tb testing.TB, c *cmd.Cmd)
- func Wait(_ context.Context, tb testing.TB, c *cmd.Cmd) int
- func WaitExitCode(ctx context.Context, tb testing.TB, c *cmd.Cmd, e int)
- type BufferedIO
Constants ¶
View Source
const CopyAfterExitTimeout = time.Second
View Source
const ForcedKilledExitCode = 137
ForcedKilledExitCode is the (Linux) exit code when processes are foreably killed.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BufferedIO ¶
type BufferedIO struct {
// contains filtered or unexported fields
}
func NewBufferedIO ¶
func NewBufferedIO() *BufferedIO
func NewBufferedIOFromString ¶
func NewBufferedIOFromString(in string) *BufferedIO
func (*BufferedIO) AddToCmd ¶
func (b *BufferedIO) AddToCmd(c *cmd.Cmd)
func (*BufferedIO) Output ¶
func (b *BufferedIO) Output() (_ string, err error)
func (*BufferedIO) TestOutput ¶
func (b *BufferedIO) TestOutput(tb testing.TB, out string, err error)
func (*BufferedIO) TestStdOutContains ¶
func (b *BufferedIO) TestStdOutContains(tb testing.TB, want, notWant []string)
Click to show internal directories.
Click to hide internal directories.