exec_fake

package
v0.0.0-...-77f688e Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCmd

type FakeCmd struct {
	StartStub func() error

	StdoutPipeStub func() (io.ReadCloser, error)

	StderrPipeStub func() (io.ReadCloser, error)

	WaitStub func() error

	RunStub func() error

	CombinedOutputStub func() ([]byte, error)

	SysProcAttrStub func() *syscall.SysProcAttr
	// contains filtered or unexported fields
}

func (*FakeCmd) CombinedOutput

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

func (*FakeCmd) CombinedOutputCallCount

func (fake *FakeCmd) CombinedOutputCallCount() int

func (*FakeCmd) CombinedOutputReturns

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

func (*FakeCmd) Invocations

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

func (*FakeCmd) Run

func (fake *FakeCmd) Run() error

func (*FakeCmd) RunCallCount

func (fake *FakeCmd) RunCallCount() int

func (*FakeCmd) RunReturns

func (fake *FakeCmd) RunReturns(result1 error)

func (*FakeCmd) Start

func (fake *FakeCmd) Start() error

func (*FakeCmd) StartCallCount

func (fake *FakeCmd) StartCallCount() int

func (*FakeCmd) StartReturns

func (fake *FakeCmd) StartReturns(result1 error)

func (*FakeCmd) StderrPipe

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

func (*FakeCmd) StderrPipeCallCount

func (fake *FakeCmd) StderrPipeCallCount() int

func (*FakeCmd) StderrPipeReturns

func (fake *FakeCmd) StderrPipeReturns(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) StdoutPipeReturns

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

func (*FakeCmd) SysProcAttr

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

func (*FakeCmd) SysProcAttrCallCount

func (fake *FakeCmd) SysProcAttrCallCount() int

func (*FakeCmd) SysProcAttrReturns

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

func (*FakeCmd) Wait

func (fake *FakeCmd) Wait() error

func (*FakeCmd) WaitCallCount

func (fake *FakeCmd) WaitCallCount() int

func (*FakeCmd) WaitReturns

func (fake *FakeCmd) WaitReturns(result1 error)

type FakeExec

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

	CommandContextStub func(ctx context.Context, name string, arg ...string) execshim.Cmd

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

func (*FakeExec) Command

func (fake *FakeExec) Command(name string, arg ...string) execshim.Cmd

func (*FakeExec) CommandArgsForCall

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

func (*FakeExec) CommandCallCount

func (fake *FakeExec) CommandCallCount() int

func (*FakeExec) CommandContext

func (fake *FakeExec) CommandContext(ctx context.Context, name string, arg ...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) CommandContextReturns

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

func (*FakeExec) CommandReturns

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

func (*FakeExec) Invocations

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

func (*FakeExec) LookPath

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

func (*FakeExec) LookPathArgsForCall

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

func (*FakeExec) LookPathCallCount

func (fake *FakeExec) LookPathCallCount() int

func (*FakeExec) LookPathReturns

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

Jump to

Keyboard shortcuts

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