fakecmdexec

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 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 FakeErrorCmdInfo

type FakeErrorCmdInfo struct {
	Cmd []string
	Err error
}

type FakeExecutor

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

func FakeExecutorFromContext

func FakeExecutorFromContext(ctx context.Context) *FakeExecutor

func NewEmptyFakeExecutor

func NewEmptyFakeExecutor() *FakeExecutor

func NewFakeExecutor

func NewFakeExecutor(initInfo *FakeExecutorInitInfo) *FakeExecutor

func (*FakeExecutor) Run

func (f *FakeExecutor) Run(bin string, args ...string) (string, error)

type FakeExecutorInitInfo

type FakeExecutorInitInfo struct {
	ValidCmds []FakeValidCmdInfo
	ErrorCmds []FakeErrorCmdInfo
}

type FakeValidCmdInfo

type FakeValidCmdInfo struct {
	Cmd    []string
	Output string
}

Jump to

Keyboard shortcuts

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