concurrency

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.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 FakeCmdWithConcurrencySupport

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

func CmdRun

func CmdRun(command string) *FakeCmdWithConcurrencySupport

func CmdRunWithOutput

func CmdRunWithOutput(command, output string) *FakeCmdWithConcurrencySupport

CmdRunWithOutput programs the fake runner with a command and expected output

func (*FakeCmdWithConcurrencySupport) AndRun

func (*FakeCmdWithConcurrencySupport) AndRunDirOut

func (c *FakeCmdWithConcurrencySupport) AndRunDirOut(command string, dir string, output string) *FakeCmdWithConcurrencySupport

func (*FakeCmdWithConcurrencySupport) AndRunEnv

func (*FakeCmdWithConcurrencySupport) AndRunErr

func (*FakeCmdWithConcurrencySupport) AndRunInput

func (c *FakeCmdWithConcurrencySupport) AndRunInput(command, input string) *FakeCmdWithConcurrencySupport

func (*FakeCmdWithConcurrencySupport) AndRunInputOut

func (c *FakeCmdWithConcurrencySupport) AndRunInputOut(command string, input string, output string) *FakeCmdWithConcurrencySupport

func (*FakeCmdWithConcurrencySupport) AndRunOut

func (*FakeCmdWithConcurrencySupport) AndRunOutErr

func (c *FakeCmdWithConcurrencySupport) AndRunOutErr(command string, output string, err error) *FakeCmdWithConcurrencySupport

func (*FakeCmdWithConcurrencySupport) AndRunOutOnce

func (c *FakeCmdWithConcurrencySupport) AndRunOutOnce(command string, output string) *FakeCmdWithConcurrencySupport

func (*FakeCmdWithConcurrencySupport) AndRunWithOutput

func (c *FakeCmdWithConcurrencySupport) AndRunWithOutput(command, output string) *FakeCmdWithConcurrencySupport

AndRunWithOutput takes a command and an expected output. It expected to match up with a call to RunCmd, and pipes the provided output to RunCmd's exec.Cmd's stdout.

func (*FakeCmdWithConcurrencySupport) ForTest

func (c *FakeCmdWithConcurrencySupport) ForTest(t *testing.T)

func (*FakeCmdWithConcurrencySupport) RunCmd

func (*FakeCmdWithConcurrencySupport) RunCmdOut

func (c *FakeCmdWithConcurrencySupport) RunCmdOut(_ context.Context, cmd *exec.Cmd) ([]byte, error)

func (*FakeCmdWithConcurrencySupport) RunCmdOutOnce

func (c *FakeCmdWithConcurrencySupport) RunCmdOutOnce(_ context.Context, cmd *exec.Cmd) ([]byte, error)

func (*FakeCmdWithConcurrencySupport) TimesCalled

func (c *FakeCmdWithConcurrencySupport) TimesCalled() int

Jump to

Keyboard shortcuts

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