exec_fake

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCmd

type FakeCmd struct {
	CombinedOutputStub func() ([]byte, error)

	PidStub func() int

	RunStub func() error

	SetEnvStub func([]string)

	SetStderrStub func(*bytes.Buffer)

	SetStdoutStub func(*bytes.Buffer)

	StartStub func() error

	StderrPipeStub func() (io.ReadCloser, error)

	StdoutPipeStub func() (io.ReadCloser, error)

	SysProcAttrStub func() *syscall.SysProcAttr

	WaitStub func() error
	// contains filtered or unexported fields
}

func (*FakeCmd) CombinedOutput

func (fake *FakeCmd) CombinedOutput() ([]byte, error)

func (*FakeCmd) CombinedOutputCallCount

func (fake *FakeCmd) CombinedOutputCallCount() int

func (*FakeCmd) CombinedOutputCalls

func (fake *FakeCmd) CombinedOutputCalls(stub func() ([]byte, error))

func (*FakeCmd) CombinedOutputReturns

func (fake *FakeCmd) CombinedOutputReturns(result1 []byte, result2 error)

func (*FakeCmd) CombinedOutputReturnsOnCall

func (fake *FakeCmd) CombinedOutputReturnsOnCall(i int, result1 []byte, result2 error)

func (*FakeCmd) Invocations

func (fake *FakeCmd) Invocations() map[string][][]interface{}

func (*FakeCmd) Pid

func (fake *FakeCmd) Pid() int

func (*FakeCmd) PidCallCount

func (fake *FakeCmd) PidCallCount() int

func (*FakeCmd) PidCalls

func (fake *FakeCmd) PidCalls(stub func() int)

func (*FakeCmd) PidReturns

func (fake *FakeCmd) PidReturns(result1 int)

func (*FakeCmd) PidReturnsOnCall

func (fake *FakeCmd) PidReturnsOnCall(i int, result1 int)

func (*FakeCmd) Run

func (fake *FakeCmd) Run() error

func (*FakeCmd) RunCallCount

func (fake *FakeCmd) RunCallCount() int

func (*FakeCmd) RunCalls

func (fake *FakeCmd) RunCalls(stub func() error)

func (*FakeCmd) RunReturns

func (fake *FakeCmd) RunReturns(result1 error)

func (*FakeCmd) RunReturnsOnCall

func (fake *FakeCmd) RunReturnsOnCall(i int, result1 error)

func (*FakeCmd) SetEnv

func (fake *FakeCmd) SetEnv(arg1 []string)

func (*FakeCmd) SetEnvArgsForCall

func (fake *FakeCmd) SetEnvArgsForCall(i int) []string

func (*FakeCmd) SetEnvCallCount

func (fake *FakeCmd) SetEnvCallCount() int

func (*FakeCmd) SetEnvCalls

func (fake *FakeCmd) SetEnvCalls(stub func([]string))

func (*FakeCmd) SetStderr

func (fake *FakeCmd) SetStderr(arg1 *bytes.Buffer)

func (*FakeCmd) SetStderrArgsForCall

func (fake *FakeCmd) SetStderrArgsForCall(i int) *bytes.Buffer

func (*FakeCmd) SetStderrCallCount

func (fake *FakeCmd) SetStderrCallCount() int

func (*FakeCmd) SetStderrCalls

func (fake *FakeCmd) SetStderrCalls(stub func(*bytes.Buffer))

func (*FakeCmd) SetStdout

func (fake *FakeCmd) SetStdout(arg1 *bytes.Buffer)

func (*FakeCmd) SetStdoutArgsForCall

func (fake *FakeCmd) SetStdoutArgsForCall(i int) *bytes.Buffer

func (*FakeCmd) SetStdoutCallCount

func (fake *FakeCmd) SetStdoutCallCount() int

func (*FakeCmd) SetStdoutCalls

func (fake *FakeCmd) SetStdoutCalls(stub func(*bytes.Buffer))

func (*FakeCmd) Start

func (fake *FakeCmd) Start() error

func (*FakeCmd) StartCallCount

func (fake *FakeCmd) StartCallCount() int

func (*FakeCmd) StartCalls

func (fake *FakeCmd) StartCalls(stub func() error)

func (*FakeCmd) StartReturns

func (fake *FakeCmd) StartReturns(result1 error)

func (*FakeCmd) StartReturnsOnCall

func (fake *FakeCmd) StartReturnsOnCall(i int, result1 error)

func (*FakeCmd) StderrPipe

func (fake *FakeCmd) StderrPipe() (io.ReadCloser, error)

func (*FakeCmd) StderrPipeCallCount

func (fake *FakeCmd) StderrPipeCallCount() int

func (*FakeCmd) StderrPipeCalls

func (fake *FakeCmd) StderrPipeCalls(stub func() (io.ReadCloser, error))

func (*FakeCmd) StderrPipeReturns

func (fake *FakeCmd) StderrPipeReturns(result1 io.ReadCloser, result2 error)

func (*FakeCmd) StderrPipeReturnsOnCall

func (fake *FakeCmd) StderrPipeReturnsOnCall(i int, result1 io.ReadCloser, result2 error)

func (*FakeCmd) StdoutPipe

func (fake *FakeCmd) StdoutPipe() (io.ReadCloser, error)

func (*FakeCmd) StdoutPipeCallCount

func (fake *FakeCmd) StdoutPipeCallCount() int

func (*FakeCmd) StdoutPipeCalls

func (fake *FakeCmd) StdoutPipeCalls(stub func() (io.ReadCloser, error))

func (*FakeCmd) StdoutPipeReturns

func (fake *FakeCmd) StdoutPipeReturns(result1 io.ReadCloser, result2 error)

func (*FakeCmd) StdoutPipeReturnsOnCall

func (fake *FakeCmd) StdoutPipeReturnsOnCall(i int, result1 io.ReadCloser, result2 error)

func (*FakeCmd) SysProcAttr

func (fake *FakeCmd) SysProcAttr() *syscall.SysProcAttr

func (*FakeCmd) SysProcAttrCallCount

func (fake *FakeCmd) SysProcAttrCallCount() int

func (*FakeCmd) SysProcAttrCalls

func (fake *FakeCmd) SysProcAttrCalls(stub func() *syscall.SysProcAttr)

func (*FakeCmd) SysProcAttrReturns

func (fake *FakeCmd) SysProcAttrReturns(result1 *syscall.SysProcAttr)

func (*FakeCmd) SysProcAttrReturnsOnCall

func (fake *FakeCmd) SysProcAttrReturnsOnCall(i int, result1 *syscall.SysProcAttr)

func (*FakeCmd) Wait

func (fake *FakeCmd) Wait() error

func (*FakeCmd) WaitCallCount

func (fake *FakeCmd) WaitCallCount() int

func (*FakeCmd) WaitCalls

func (fake *FakeCmd) WaitCalls(stub func() error)

func (*FakeCmd) WaitReturns

func (fake *FakeCmd) WaitReturns(result1 error)

func (*FakeCmd) WaitReturnsOnCall

func (fake *FakeCmd) WaitReturnsOnCall(i int, result1 error)

type FakeExec

type FakeExec struct {
	CommandStub func(string, ...string) execshim.Cmd

	CommandContextStub func(context.Context, string, ...string) execshim.Cmd

	LookPathStub func(string) (string, error)
	// contains filtered or unexported fields
}

func (*FakeExec) Command

func (fake *FakeExec) Command(arg1 string, arg2 ...string) execshim.Cmd

func (*FakeExec) CommandArgsForCall

func (fake *FakeExec) CommandArgsForCall(i int) (string, []string)

func (*FakeExec) CommandCallCount

func (fake *FakeExec) CommandCallCount() int

func (*FakeExec) CommandCalls

func (fake *FakeExec) CommandCalls(stub func(string, ...string) execshim.Cmd)

func (*FakeExec) CommandContext

func (fake *FakeExec) CommandContext(arg1 context.Context, arg2 string, arg3 ...string) execshim.Cmd

func (*FakeExec) CommandContextArgsForCall

func (fake *FakeExec) CommandContextArgsForCall(i int) (context.Context, string, []string)

func (*FakeExec) CommandContextCallCount

func (fake *FakeExec) CommandContextCallCount() int

func (*FakeExec) CommandContextCalls

func (fake *FakeExec) CommandContextCalls(stub func(context.Context, string, ...string) execshim.Cmd)

func (*FakeExec) CommandContextReturns

func (fake *FakeExec) CommandContextReturns(result1 execshim.Cmd)

func (*FakeExec) CommandContextReturnsOnCall

func (fake *FakeExec) CommandContextReturnsOnCall(i int, result1 execshim.Cmd)

func (*FakeExec) CommandReturns

func (fake *FakeExec) CommandReturns(result1 execshim.Cmd)

func (*FakeExec) CommandReturnsOnCall

func (fake *FakeExec) CommandReturnsOnCall(i int, result1 execshim.Cmd)

func (*FakeExec) Invocations

func (fake *FakeExec) Invocations() map[string][][]interface{}

func (*FakeExec) LookPath

func (fake *FakeExec) LookPath(arg1 string) (string, error)

func (*FakeExec) LookPathArgsForCall

func (fake *FakeExec) LookPathArgsForCall(i int) string

func (*FakeExec) LookPathCallCount

func (fake *FakeExec) LookPathCallCount() int

func (*FakeExec) LookPathCalls

func (fake *FakeExec) LookPathCalls(stub func(string) (string, error))

func (*FakeExec) LookPathReturns

func (fake *FakeExec) LookPathReturns(result1 string, result2 error)

func (*FakeExec) LookPathReturnsOnCall

func (fake *FakeExec) LookPathReturnsOnCall(i int, result1 string, result2 error)

Jump to

Keyboard shortcuts

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