mocks

package
v0.0.0-...-18c0211 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	mock.Mock
}

Cmd is an autogenerated mock type for the Cmd type

func NewCmd

func NewCmd(t interface {
	mock.TestingT
	Cleanup(func())
}) *Cmd

NewCmd creates a new instance of Cmd. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Cmd) CombinedOutput

func (_m *Cmd) CombinedOutput() ([]byte, error)

CombinedOutput provides a mock function with given fields:

func (*Cmd) Output

func (_m *Cmd) Output() ([]byte, error)

Output provides a mock function with given fields:

func (*Cmd) Run

func (_m *Cmd) Run() error

Run provides a mock function with given fields:

func (*Cmd) SetDir

func (_m *Cmd) SetDir(dir string)

SetDir provides a mock function with given fields: dir

func (*Cmd) SetEnv

func (_m *Cmd) SetEnv(env []string)

SetEnv provides a mock function with given fields: env

func (*Cmd) SetStderr

func (_m *Cmd) SetStderr(out io.Writer)

SetStderr provides a mock function with given fields: out

func (*Cmd) SetStdin

func (_m *Cmd) SetStdin(in io.Reader)

SetStdin provides a mock function with given fields: in

func (*Cmd) SetStdout

func (_m *Cmd) SetStdout(out io.Writer)

SetStdout provides a mock function with given fields: out

func (*Cmd) Start

func (_m *Cmd) Start() error

Start provides a mock function with given fields:

func (*Cmd) StderrPipe

func (_m *Cmd) StderrPipe() (io.ReadCloser, error)

StderrPipe provides a mock function with given fields:

func (*Cmd) StdoutPipe

func (_m *Cmd) StdoutPipe() (io.ReadCloser, error)

StdoutPipe provides a mock function with given fields:

func (*Cmd) Stop

func (_m *Cmd) Stop()

Stop provides a mock function with given fields:

func (*Cmd) Wait

func (_m *Cmd) Wait() error

Wait provides a mock function with given fields:

type ExitError

type ExitError struct {
	mock.Mock
}

ExitError is an autogenerated mock type for the ExitError type

func NewExitError

func NewExitError(t interface {
	mock.TestingT
	Cleanup(func())
}) *ExitError

NewExitError creates a new instance of ExitError. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ExitError) Error

func (_m *ExitError) Error() string

Error provides a mock function with given fields:

func (*ExitError) ExitStatus

func (_m *ExitError) ExitStatus() int

ExitStatus provides a mock function with given fields:

func (*ExitError) Exited

func (_m *ExitError) Exited() bool

Exited provides a mock function with given fields:

func (*ExitError) String

func (_m *ExitError) String() string

String provides a mock function with given fields:

type Interface

type Interface struct {
	mock.Mock
}

Interface is an autogenerated mock type for the Interface type

func NewInterface

func NewInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *Interface

NewInterface creates a new instance of Interface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Interface) Command

func (_m *Interface) Command(cmd string, args ...string) exec.Cmd

Command provides a mock function with given fields: cmd, args

func (*Interface) CommandContext

func (_m *Interface) CommandContext(ctx context.Context, cmd string, args ...string) exec.Cmd

CommandContext provides a mock function with given fields: ctx, cmd, args

func (*Interface) LookPath

func (_m *Interface) LookPath(file string) (string, error)

LookPath provides a mock function with given fields: file

Jump to

Keyboard shortcuts

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