mocks

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChecker

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

MockChecker is a mock of Checker interface.

func NewMockChecker

func NewMockChecker(ctrl *gomock.Controller) *MockChecker

NewMockChecker creates a new mock instance.

func (*MockChecker) Check

func (m *MockChecker) Check(arg0 string) bool

Check mocks base method.

func (*MockChecker) EXPECT

func (m *MockChecker) EXPECT() *MockCheckerMockRecorder

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

type MockCheckerMockRecorder

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

MockCheckerMockRecorder is the mock recorder for MockChecker.

func (*MockCheckerMockRecorder) Check

func (mr *MockCheckerMockRecorder) Check(arg0 interface{}) *gomock.Call

Check indicates an expected call of Check.

type MockContext

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

MockContext is a mock of Context interface.

func NewMockContext

func NewMockContext(ctrl *gomock.Controller) *MockContext

NewMockContext creates a new mock instance.

func (*MockContext) Deadline

func (m *MockContext) Deadline() (time.Time, bool)

Deadline mocks base method.

func (*MockContext) Done

func (m *MockContext) Done() <-chan struct{}

Done mocks base method.

func (*MockContext) EXPECT

func (m *MockContext) EXPECT() *MockContextMockRecorder

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

func (*MockContext) Err

func (m *MockContext) Err() error

Err mocks base method.

func (*MockContext) Value

func (m *MockContext) Value(arg0 interface{}) interface{}

Value mocks base method.

type MockContextMockRecorder

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

MockContextMockRecorder is the mock recorder for MockContext.

func (*MockContextMockRecorder) Deadline

func (mr *MockContextMockRecorder) Deadline() *gomock.Call

Deadline indicates an expected call of Deadline.

func (*MockContextMockRecorder) Done

func (mr *MockContextMockRecorder) Done() *gomock.Call

Done indicates an expected call of Done.

func (*MockContextMockRecorder) Err

func (mr *MockContextMockRecorder) Err() *gomock.Call

Err indicates an expected call of Err.

func (*MockContextMockRecorder) Value

func (mr *MockContextMockRecorder) Value(arg0 interface{}) *gomock.Call

Value indicates an expected call of Value.

type MockExecCommandContext

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

MockExecCommandContext is a mock of ExecCommandContext interface.

func NewMockExecCommandContext

func NewMockExecCommandContext(ctrl *gomock.Controller) *MockExecCommandContext

NewMockExecCommandContext creates a new mock instance.

func (*MockExecCommandContext) CommandContext

func (m *MockExecCommandContext) CommandContext(arg0 context.Context, arg1 string, arg2 ...string) *exec.Cmd

CommandContext mocks base method.

func (*MockExecCommandContext) EXPECT

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

type MockExecCommandContextMockRecorder

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

MockExecCommandContextMockRecorder is the mock recorder for MockExecCommandContext.

func (*MockExecCommandContextMockRecorder) CommandContext

func (mr *MockExecCommandContextMockRecorder) CommandContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

CommandContext indicates an expected call of CommandContext.

type MockOSProcess

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

MockOSProcess is a mock of OSProcess interface.

func NewMockOSProcess

func NewMockOSProcess(ctrl *gomock.Controller) *MockOSProcess

NewMockOSProcess creates a new mock instance.

func (*MockOSProcess) EXPECT

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

func (*MockOSProcess) Signal

func (m *MockOSProcess) Signal(arg0 os.Signal) error

Signal mocks base method.

func (*MockOSProcess) Wait

func (m *MockOSProcess) Wait() (*os.ProcessState, error)

Wait mocks base method.

type MockOSProcessMockRecorder

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

MockOSProcessMockRecorder is the mock recorder for MockOSProcess.

func (*MockOSProcessMockRecorder) Signal

func (mr *MockOSProcessMockRecorder) Signal(arg0 interface{}) *gomock.Call

Signal indicates an expected call of Signal.

func (*MockOSProcessMockRecorder) Wait

Wait indicates an expected call of Wait.

type MockPacketConnection

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

MockPacketConnection is a mock of PacketConnection interface.

func NewMockPacketConnection

func NewMockPacketConnection(ctrl *gomock.Controller) *MockPacketConnection

NewMockPacketConnection creates a new mock instance.

func (*MockPacketConnection) Close

func (m *MockPacketConnection) Close() error

Close mocks base method.

func (*MockPacketConnection) EXPECT

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

func (*MockPacketConnection) ReadFrom

func (m *MockPacketConnection) ReadFrom(arg0 []byte) (int, net.Addr, error)

ReadFrom mocks base method.

type MockPacketConnectionMockRecorder

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

MockPacketConnectionMockRecorder is the mock recorder for MockPacketConnection.

func (*MockPacketConnectionMockRecorder) Close

Close indicates an expected call of Close.

func (*MockPacketConnectionMockRecorder) ReadFrom

func (mr *MockPacketConnectionMockRecorder) ReadFrom(arg0 interface{}) *gomock.Call

ReadFrom indicates an expected call of ReadFrom.

type MockPacketListener

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

MockPacketListener is a mock of PacketListener interface.

func NewMockPacketListener

func NewMockPacketListener(ctrl *gomock.Controller) *MockPacketListener

NewMockPacketListener creates a new mock instance.

func (*MockPacketListener) EXPECT

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

func (*MockPacketListener) ListenPacket

func (m *MockPacketListener) ListenPacket(arg0, arg1 string) (containerrun.PacketConnection, error)

ListenPacket mocks base method.

type MockPacketListenerMockRecorder

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

MockPacketListenerMockRecorder is the mock recorder for MockPacketListener.

func (*MockPacketListenerMockRecorder) ListenPacket

func (mr *MockPacketListenerMockRecorder) ListenPacket(arg0, arg1 interface{}) *gomock.Call

ListenPacket indicates an expected call of ListenPacket.

type MockProcess

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

MockProcess is a mock of Process interface.

func NewMockProcess

func NewMockProcess(ctrl *gomock.Controller) *MockProcess

NewMockProcess creates a new mock instance.

func (*MockProcess) EXPECT

func (m *MockProcess) EXPECT() *MockProcessMockRecorder

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

func (*MockProcess) Pid added in v0.0.3

func (m *MockProcess) Pid() int

Pid mocks base method.

func (*MockProcess) Signal

func (m *MockProcess) Signal(arg0 os.Signal) error

Signal mocks base method.

func (*MockProcess) Wait

func (m *MockProcess) Wait() error

Wait mocks base method.

type MockProcessMockRecorder

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

MockProcessMockRecorder is the mock recorder for MockProcess.

func (*MockProcessMockRecorder) Pid added in v0.0.3

func (mr *MockProcessMockRecorder) Pid() *gomock.Call

Pid indicates an expected call of Pid.

func (*MockProcessMockRecorder) Signal

func (mr *MockProcessMockRecorder) Signal(arg0 interface{}) *gomock.Call

Signal indicates an expected call of Signal.

func (*MockProcessMockRecorder) Wait

func (mr *MockProcessMockRecorder) Wait() *gomock.Call

Wait indicates an expected call of Wait.

type MockRunner

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

MockRunner is a mock of Runner interface.

func NewMockRunner

func NewMockRunner(ctrl *gomock.Controller) *MockRunner

NewMockRunner creates a new mock instance.

func (*MockRunner) EXPECT

func (m *MockRunner) EXPECT() *MockRunnerMockRecorder

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

func (*MockRunner) Run

Run mocks base method.

func (*MockRunner) RunContext

RunContext mocks base method.

type MockRunnerMockRecorder

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

MockRunnerMockRecorder is the mock recorder for MockRunner.

func (*MockRunnerMockRecorder) Run

func (mr *MockRunnerMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call

Run indicates an expected call of Run.

func (*MockRunnerMockRecorder) RunContext

func (mr *MockRunnerMockRecorder) RunContext(arg0, arg1, arg2 interface{}) *gomock.Call

RunContext indicates an expected call of RunContext.

Jump to

Keyboard shortcuts

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