mock_modserver

package
v14.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package mock_modserver is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncomingCtx

func IncomingCtx(ctx context.Context, t *testing.T, agentToken api.AgentToken) context.Context

Types

type MockAPI

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

MockAPI is a mock of API interface.

func NewMockAPI

func NewMockAPI(ctrl *gomock.Controller) *MockAPI

NewMockAPI creates a new mock instance.

func NewMockAPIWithMockPoller

func NewMockAPIWithMockPoller(ctrl *gomock.Controller, pollTimes int) *MockAPI

func (*MockAPI) Capture

func (m *MockAPI) Capture(arg0 error, arg1 ...errortracking.CaptureOption)

Capture mocks base method.

func (*MockAPI) EXPECT

func (m *MockAPI) EXPECT() *MockAPIMockRecorder

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

func (*MockAPI) GetAgentInfo

func (m *MockAPI) GetAgentInfo(arg0 context.Context, arg1 *zap.Logger, arg2 api.AgentToken) (*api.AgentInfo, error)

GetAgentInfo mocks base method.

func (*MockAPI) HandleProcessingError

func (m *MockAPI) HandleProcessingError(arg0 context.Context, arg1 *zap.Logger, arg2 string, arg3 error)

HandleProcessingError mocks base method.

func (*MockAPI) HandleSendError

func (m *MockAPI) HandleSendError(arg0 *zap.Logger, arg1 string, arg2 error) error

HandleSendError mocks base method.

func (*MockAPI) PollWithBackoff

func (m *MockAPI) PollWithBackoff(arg0 context.Context, arg1 wait.BackoffManager, arg2 bool, arg3, arg4 time.Duration, arg5 retry.PollWithBackoffFunc) error

PollWithBackoff mocks base method.

type MockAPIMockRecorder

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

MockAPIMockRecorder is the mock recorder for MockAPI.

func (*MockAPIMockRecorder) Capture

func (mr *MockAPIMockRecorder) Capture(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Capture indicates an expected call of Capture.

func (*MockAPIMockRecorder) GetAgentInfo

func (mr *MockAPIMockRecorder) GetAgentInfo(arg0, arg1, arg2 interface{}) *gomock.Call

GetAgentInfo indicates an expected call of GetAgentInfo.

func (*MockAPIMockRecorder) HandleProcessingError

func (mr *MockAPIMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

HandleProcessingError indicates an expected call of HandleProcessingError.

func (*MockAPIMockRecorder) HandleSendError

func (mr *MockAPIMockRecorder) HandleSendError(arg0, arg1, arg2 interface{}) *gomock.Call

HandleSendError indicates an expected call of HandleSendError.

func (*MockAPIMockRecorder) PollWithBackoff

func (mr *MockAPIMockRecorder) PollWithBackoff(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

PollWithBackoff indicates an expected call of PollWithBackoff.

Jump to

Keyboard shortcuts

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