fake

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Call

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

func NewCall

func NewCall(name string, args ...string) *Call

func (*Call) WithDir

func (ec *Call) WithDir(dir string) *Call

func (*Call) WithEnv

func (ec *Call) WithEnv(env ...string) *Call

func (*Call) WithErrorMsg

func (ec *Call) WithErrorMsg(msg string) *Call

func (*Call) WithStderr

func (ec *Call) WithStderr(text string) *Call

func (*Call) WithStdout

func (ec *Call) WithStdout(text string) *Call

type Fake

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

func New

func New(t *testing.T) *Fake

func (*Fake) Done

func (m *Fake) Done() bool

func (*Fake) Exec

func (m *Fake) Exec(c *exec.Cmd) (int, error)

func (*Fake) WithCall

func (m *Fake) WithCall(name string, args ...string) *Call

type ScriptGenerator added in v0.49.0

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

func NewScriptGenerator added in v0.49.0

func NewScriptGenerator(t *testing.T) *ScriptGenerator

func (*ScriptGenerator) Create added in v0.49.0

func (sg *ScriptGenerator) Create(commands ...string) (string, error)

func (*ScriptGenerator) Remove added in v0.49.0

func (sg *ScriptGenerator) Remove(_ string) error

func (*ScriptGenerator) WithCommands added in v0.49.0

func (sg *ScriptGenerator) WithCommands(commands ...string) *ScriptGenerator

Jump to

Keyboard shortcuts

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