mocks

package
v1.18.1-qos Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

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 MockRouter

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

MockRouter is a mock of Router interface.

func NewMockRouter

func NewMockRouter(ctrl *gomock.Controller) *MockRouter

NewMockRouter creates a new mock instance.

func (*MockRouter) AddChain

func (m *MockRouter) AddChain(chainID ids.ID, handler any)

AddChain mocks base method.

func (*MockRouter) AppGossip

func (m *MockRouter) AppGossip(ctx context.Context, nodeID ids.NodeID, msg []byte) error

AppGossip mocks base method.

func (*MockRouter) AppRequest

func (m *MockRouter) AppRequest(ctx context.Context, nodeID ids.NodeID, requestID uint32, deadline time.Time, appRequestBytes []byte) error

AppRequest mocks base method.

func (*MockRouter) AppRequestFailed

func (m *MockRouter) AppRequestFailed(ctx context.Context, nodeID ids.NodeID, requestID uint32, appErr *core.AppError) error

AppRequestFailed mocks base method.

func (*MockRouter) AppResponse

func (m *MockRouter) AppResponse(ctx context.Context, nodeID ids.NodeID, requestID uint32, appResponseBytes []byte) error

AppResponse mocks base method.

func (*MockRouter) Connected

func (m *MockRouter) Connected(nodeID ids.NodeID, nodeVersion *version.Application, netID ids.ID)

Connected mocks base method.

func (*MockRouter) Disconnected

func (m *MockRouter) Disconnected(nodeID ids.NodeID)

Disconnected mocks base method.

func (*MockRouter) EXPECT

func (m *MockRouter) EXPECT() *MockRouterMockRecorder

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

func (*MockRouter) HandleInbound

func (m *MockRouter) HandleInbound(arg0 context.Context, arg1 any)

HandleInbound mocks base method.

func (*MockRouter) HealthCheck

func (m *MockRouter) HealthCheck(ctx context.Context) (any, error)

HealthCheck mocks base method.

func (*MockRouter) Initialize

func (m *MockRouter) Initialize(nodeID ids.NodeID, log, timeoutManager any, closeTimeout time.Duration, criticalChains any, sybilProtectionEnabled bool, trackedSubnets any, onFatal func(int), healthConfig interface{}, metricsRegisterer any) error

Initialize mocks base method.

func (*MockRouter) RemoveChain

func (m *MockRouter) RemoveChain(chainID ids.ID)

RemoveChain mocks base method.

type MockRouterMockRecorder

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

MockRouterMockRecorder is the mock recorder for MockRouter.

func (*MockRouterMockRecorder) AddChain

func (mr *MockRouterMockRecorder) AddChain(chainID, handler any) *gomock.Call

AddChain indicates an expected call of AddChain.

func (*MockRouterMockRecorder) AppGossip

func (mr *MockRouterMockRecorder) AppGossip(ctx, nodeID, msg any) *gomock.Call

AppGossip indicates an expected call of AppGossip.

func (*MockRouterMockRecorder) AppRequest

func (mr *MockRouterMockRecorder) AppRequest(ctx, nodeID, requestID, deadline, appRequestBytes any) *gomock.Call

AppRequest indicates an expected call of AppRequest.

func (*MockRouterMockRecorder) AppRequestFailed

func (mr *MockRouterMockRecorder) AppRequestFailed(ctx, nodeID, requestID, appErr any) *gomock.Call

AppRequestFailed indicates an expected call of AppRequestFailed.

func (*MockRouterMockRecorder) AppResponse

func (mr *MockRouterMockRecorder) AppResponse(ctx, nodeID, requestID, appResponseBytes any) *gomock.Call

AppResponse indicates an expected call of AppResponse.

func (*MockRouterMockRecorder) Connected

func (mr *MockRouterMockRecorder) Connected(nodeID, nodeVersion, netID any) *gomock.Call

Connected indicates an expected call of Connected.

func (*MockRouterMockRecorder) Disconnected

func (mr *MockRouterMockRecorder) Disconnected(nodeID any) *gomock.Call

Disconnected indicates an expected call of Disconnected.

func (*MockRouterMockRecorder) HandleInbound

func (mr *MockRouterMockRecorder) HandleInbound(arg0, arg1 any) *gomock.Call

HandleInbound indicates an expected call of HandleInbound.

func (*MockRouterMockRecorder) HealthCheck

func (mr *MockRouterMockRecorder) HealthCheck(ctx any) *gomock.Call

HealthCheck indicates an expected call of HealthCheck.

func (*MockRouterMockRecorder) Initialize

func (mr *MockRouterMockRecorder) Initialize(nodeID, log, timeoutManager, closeTimeout, criticalChains, sybilProtectionEnabled, trackedSubnets, onFatal, healthConfig, metricsRegisterer any) *gomock.Call

Initialize indicates an expected call of Initialize.

func (*MockRouterMockRecorder) RemoveChain

func (mr *MockRouterMockRecorder) RemoveChain(chainID any) *gomock.Call

RemoveChain indicates an expected call of RemoveChain.

Jump to

Keyboard shortcuts

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