Documentation
¶
Index ¶
- type FakeCmdWithConcurrencySupport
- func (c *FakeCmdWithConcurrencySupport) AndRun(command string) *FakeCmdWithConcurrencySupport
- func (c *FakeCmdWithConcurrencySupport) AndRunDirOut(command string, dir string, output string) *FakeCmdWithConcurrencySupport
- func (c *FakeCmdWithConcurrencySupport) AndRunEnv(command string, env []string) *FakeCmdWithConcurrencySupport
- func (c *FakeCmdWithConcurrencySupport) AndRunErr(command string, err error) *FakeCmdWithConcurrencySupport
- func (c *FakeCmdWithConcurrencySupport) AndRunInput(command, input string) *FakeCmdWithConcurrencySupport
- func (c *FakeCmdWithConcurrencySupport) AndRunInputOut(command string, input string, output string) *FakeCmdWithConcurrencySupport
- func (c *FakeCmdWithConcurrencySupport) AndRunOut(command string, output string) *FakeCmdWithConcurrencySupport
- func (c *FakeCmdWithConcurrencySupport) AndRunOutErr(command string, output string, err error) *FakeCmdWithConcurrencySupport
- func (c *FakeCmdWithConcurrencySupport) AndRunOutOnce(command string, output string) *FakeCmdWithConcurrencySupport
- func (c *FakeCmdWithConcurrencySupport) AndRunWithOutput(command, output string) *FakeCmdWithConcurrencySupport
- func (c *FakeCmdWithConcurrencySupport) ForTest(t *testing.T)
- func (c *FakeCmdWithConcurrencySupport) RunCmd(_ context.Context, cmd *exec.Cmd) error
- func (c *FakeCmdWithConcurrencySupport) RunCmdOut(_ context.Context, cmd *exec.Cmd) ([]byte, error)
- func (c *FakeCmdWithConcurrencySupport) RunCmdOutOnce(_ context.Context, cmd *exec.Cmd) ([]byte, error)
- func (c *FakeCmdWithConcurrencySupport) TimesCalled() int
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 (c *FakeCmdWithConcurrencySupport) AndRun(command string) *FakeCmdWithConcurrencySupport
func (*FakeCmdWithConcurrencySupport) AndRunDirOut ¶
func (c *FakeCmdWithConcurrencySupport) AndRunDirOut(command string, dir string, output string) *FakeCmdWithConcurrencySupport
func (*FakeCmdWithConcurrencySupport) AndRunEnv ¶
func (c *FakeCmdWithConcurrencySupport) AndRunEnv(command string, env []string) *FakeCmdWithConcurrencySupport
func (*FakeCmdWithConcurrencySupport) AndRunErr ¶
func (c *FakeCmdWithConcurrencySupport) AndRunErr(command string, err error) *FakeCmdWithConcurrencySupport
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 (c *FakeCmdWithConcurrencySupport) AndRunOut(command string, output string) *FakeCmdWithConcurrencySupport
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) RunCmdOutOnce ¶
func (*FakeCmdWithConcurrencySupport) TimesCalled ¶
func (c *FakeCmdWithConcurrencySupport) TimesCalled() int
Click to show internal directories.
Click to hide internal directories.