mocks

package
v0.0.0-...-4fa15db Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shell

type Shell struct {
	mock.Mock
}

Shell is an autogenerated mock type for the Shell type

func NewShell

func NewShell(t mockConstructorTestingTNewShell) *Shell

NewShell creates a new instance of Shell. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Shell) Copy

func (_m *Shell) Copy(src string, dest string) error

Copy provides a mock function with given fields: src, dest

func (*Shell) Exec

func (_m *Shell) Exec(ctx context.Context, name string, args ...string) error

Exec provides a mock function with given fields: ctx, name, args

func (*Shell) ExecInOut

func (_m *Shell) ExecInOut(ctx context.Context, env map[string]string, stdin io.Reader, name string, args ...string) ([]byte, []byte, error)

ExecInOut provides a mock function with given fields: ctx, env, stdin, name, args

func (*Shell) Move

func (_m *Shell) Move(src string, dest string) error

Move provides a mock function with given fields: src, dest

func (*Shell) Remove

func (_m *Shell) Remove(fpth string) error

Remove provides a mock function with given fields: fpth

Jump to

Keyboard shortcuts

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