mocks

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: MPL-2.0, MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	mock.Mock
}

Executor is an autogenerated mock type for the Executor type

func (*Executor) Buffered

func (_m *Executor) Buffered(ctx context.Context, cmds ...*exec.Cmd) (*bytes.Buffer, *bytes.Buffer, osexec.PipelineResult, error)

Buffered provides a mock function with given fields: ctx, cmds

func (*Executor) Command

func (_m *Executor) Command(name string, arg ...string) *exec.Cmd

Command provides a mock function with given fields: name, arg

func (*Executor) CommandContext

func (_m *Executor) CommandContext(ctx context.Context, name string, arg ...string) *exec.Cmd

CommandContext provides a mock function with given fields: ctx, name, arg

func (*Executor) Pty

func (_m *Executor) Pty(cmd *exec.Cmd) error

Pty provides a mock function with given fields: cmd

func (*Executor) Standard

func (_m *Executor) Standard(ctx context.Context, stdout io.Writer, stderr io.Writer, stdin io.Reader, cmds ...*exec.Cmd) (osexec.PipelineResult, error)

Standard provides a mock function with given fields: ctx, stdout, stderr, stdin, cmds

Jump to

Keyboard shortcuts

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