mock_pool

package
v0.5.0-alpha.16 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_pool is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPool

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

MockPool is a mock of Pool interface.

func NewMockPool

func NewMockPool(ctrl *gomock.Controller) *MockPool

NewMockPool creates a new mock instance.

func (*MockPool) AddPeer

func (m *MockPool) AddPeer(arg0 context.Context, arg1 peer.Peer) error

AddPeer mocks base method.

func (*MockPool) EXPECT

func (m *MockPool) EXPECT() *MockPoolMockRecorder

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

func (*MockPool) Get

func (m *MockPool) Get(arg0 context.Context, arg1 string) (peer.Peer, error)

Get mocks base method.

func (*MockPool) GetOneOf

func (m *MockPool) GetOneOf(arg0 context.Context, arg1 []string) (peer.Peer, error)

GetOneOf mocks base method.

func (*MockPool) Pick added in v0.4.21

func (m *MockPool) Pick(arg0 context.Context, arg1 string) (peer.Peer, error)

Pick mocks base method.

type MockPoolMockRecorder

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

MockPoolMockRecorder is the mock recorder for MockPool.

func (*MockPoolMockRecorder) AddPeer

func (mr *MockPoolMockRecorder) AddPeer(arg0, arg1 any) *gomock.Call

AddPeer indicates an expected call of AddPeer.

func (*MockPoolMockRecorder) Get

func (mr *MockPoolMockRecorder) Get(arg0, arg1 any) *gomock.Call

Get indicates an expected call of Get.

func (*MockPoolMockRecorder) GetOneOf

func (mr *MockPoolMockRecorder) GetOneOf(arg0, arg1 any) *gomock.Call

GetOneOf indicates an expected call of GetOneOf.

func (*MockPoolMockRecorder) Pick added in v0.4.21

func (mr *MockPoolMockRecorder) Pick(arg0, arg1 any) *gomock.Call

Pick indicates an expected call of Pick.

type MockService added in v0.5.0

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

MockService is a mock of Service interface.

func NewMockService added in v0.5.0

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance.

func (*MockService) AddPeer added in v0.5.0

func (m *MockService) AddPeer(arg0 context.Context, arg1 peer.Peer) error

AddPeer mocks base method.

func (*MockService) Close added in v0.5.0

func (m *MockService) Close(arg0 context.Context) error

Close mocks base method.

func (*MockService) EXPECT added in v0.5.0

func (m *MockService) EXPECT() *MockServiceMockRecorder

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

func (*MockService) Get added in v0.5.0

func (m *MockService) Get(arg0 context.Context, arg1 string) (peer.Peer, error)

Get mocks base method.

func (*MockService) GetOneOf added in v0.5.0

func (m *MockService) GetOneOf(arg0 context.Context, arg1 []string) (peer.Peer, error)

GetOneOf mocks base method.

func (*MockService) Init added in v0.5.0

func (m *MockService) Init(arg0 *app.App) error

Init mocks base method.

func (*MockService) Name added in v0.5.0

func (m *MockService) Name() string

Name mocks base method.

func (*MockService) Pick added in v0.5.0

func (m *MockService) Pick(arg0 context.Context, arg1 string) (peer.Peer, error)

Pick mocks base method.

func (*MockService) Run added in v0.5.0

func (m *MockService) Run(arg0 context.Context) error

Run mocks base method.

type MockServiceMockRecorder added in v0.5.0

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

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) AddPeer added in v0.5.0

func (mr *MockServiceMockRecorder) AddPeer(arg0, arg1 any) *gomock.Call

AddPeer indicates an expected call of AddPeer.

func (*MockServiceMockRecorder) Close added in v0.5.0

func (mr *MockServiceMockRecorder) Close(arg0 any) *gomock.Call

Close indicates an expected call of Close.

func (*MockServiceMockRecorder) Get added in v0.5.0

func (mr *MockServiceMockRecorder) Get(arg0, arg1 any) *gomock.Call

Get indicates an expected call of Get.

func (*MockServiceMockRecorder) GetOneOf added in v0.5.0

func (mr *MockServiceMockRecorder) GetOneOf(arg0, arg1 any) *gomock.Call

GetOneOf indicates an expected call of GetOneOf.

func (*MockServiceMockRecorder) Init added in v0.5.0

func (mr *MockServiceMockRecorder) Init(arg0 any) *gomock.Call

Init indicates an expected call of Init.

func (*MockServiceMockRecorder) Name added in v0.5.0

func (mr *MockServiceMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockServiceMockRecorder) Pick added in v0.5.0

func (mr *MockServiceMockRecorder) Pick(arg0, arg1 any) *gomock.Call

Pick indicates an expected call of Pick.

func (*MockServiceMockRecorder) Run added in v0.5.0

func (mr *MockServiceMockRecorder) Run(arg0 any) *gomock.Call

Run indicates an expected call of Run.

Jump to

Keyboard shortcuts

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