Documentation ¶
Overview ¶
Package mock_pool is a generated GoMock package.
Index ¶
- type MockPool
- func (m *MockPool) AddPeer(arg0 context.Context, arg1 peer.Peer) error
- func (m *MockPool) EXPECT() *MockPoolMockRecorder
- func (m *MockPool) Get(arg0 context.Context, arg1 string) (peer.Peer, error)
- func (m *MockPool) GetOneOf(arg0 context.Context, arg1 []string) (peer.Peer, error)
- func (m *MockPool) Pick(arg0 context.Context, arg1 string) (peer.Peer, error)
- type MockPoolMockRecorder
- type MockService
- func (m *MockService) AddPeer(arg0 context.Context, arg1 peer.Peer) error
- func (m *MockService) Close(arg0 context.Context) error
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) Get(arg0 context.Context, arg1 string) (peer.Peer, error)
- func (m *MockService) GetOneOf(arg0 context.Context, arg1 []string) (peer.Peer, error)
- func (m *MockService) Init(arg0 *app.App) error
- func (m *MockService) Name() string
- func (m *MockService) Pick(arg0 context.Context, arg1 string) (peer.Peer, error)
- func (m *MockService) Run(arg0 context.Context) error
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) AddPeer(arg0, arg1 any) *gomock.Call
- func (mr *MockServiceMockRecorder) Close(arg0 any) *gomock.Call
- func (mr *MockServiceMockRecorder) Get(arg0, arg1 any) *gomock.Call
- func (mr *MockServiceMockRecorder) GetOneOf(arg0, arg1 any) *gomock.Call
- func (mr *MockServiceMockRecorder) Init(arg0 any) *gomock.Call
- func (mr *MockServiceMockRecorder) Name() *gomock.Call
- func (mr *MockServiceMockRecorder) Pick(arg0, arg1 any) *gomock.Call
- func (mr *MockServiceMockRecorder) Run(arg0 any) *gomock.Call
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) EXPECT ¶
func (m *MockPool) EXPECT() *MockPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
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) 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) 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.
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.