mock_pool

package
v0.5.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 4 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.

Jump to

Keyboard shortcuts

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