mock

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: MPL-2.0, MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockExecutor

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

MockExecutor is a mock of Executor interface

func NewMockExecutor

func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor

NewMockExecutor creates a new mock instance

func (*MockExecutor) Buffered

func (m *MockExecutor) Buffered(ctx context.Context, cmds ...*exec0.Cmd) (*bytes.Buffer, *bytes.Buffer, exec.PipelineResult, error)

Buffered mocks base method

func (*MockExecutor) Command

func (m *MockExecutor) Command(name string, arg ...string) *exec0.Cmd

Command mocks base method

func (*MockExecutor) CommandContext

func (m *MockExecutor) CommandContext(ctx context.Context, name string, arg ...string) *exec0.Cmd

CommandContext mocks base method

func (*MockExecutor) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockExecutor) Pty

func (m *MockExecutor) Pty(cmd *exec0.Cmd) error

Pty mocks base method

func (*MockExecutor) Standard

func (m *MockExecutor) Standard(ctx context.Context, stdout, stderr io.Writer, stdin io.Reader, cmds ...*exec0.Cmd) (exec.PipelineResult, error)

Standard mocks base method

type MockExecutorMockRecorder

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

MockExecutorMockRecorder is the mock recorder for MockExecutor

func (*MockExecutorMockRecorder) Buffered

func (mr *MockExecutorMockRecorder) Buffered(ctx interface{}, cmds ...interface{}) *gomock.Call

Buffered indicates an expected call of Buffered

func (*MockExecutorMockRecorder) Command

func (mr *MockExecutorMockRecorder) Command(name interface{}, arg ...interface{}) *gomock.Call

Command indicates an expected call of Command

func (*MockExecutorMockRecorder) CommandContext

func (mr *MockExecutorMockRecorder) CommandContext(ctx, name interface{}, arg ...interface{}) *gomock.Call

CommandContext indicates an expected call of CommandContext

func (*MockExecutorMockRecorder) Pty

func (mr *MockExecutorMockRecorder) Pty(cmd interface{}) *gomock.Call

Pty indicates an expected call of Pty

func (*MockExecutorMockRecorder) Standard

func (mr *MockExecutorMockRecorder) Standard(ctx, stdout, stderr, stdin interface{}, cmds ...interface{}) *gomock.Call

Standard indicates an expected call of Standard

Jump to

Keyboard shortcuts

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