2018-08-07 16:52:11 +01:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2018-10-15 18:42:36 +01:00
|
|
|
// Source: ./pkg/overlay/client.go
|
2018-08-07 16:52:11 +01:00
|
|
|
|
|
|
|
// Package mock_overlay is a generated GoMock package.
|
2018-10-08 16:09:37 +01:00
|
|
|
package mocks
|
2018-08-07 16:52:11 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2018-09-11 05:52:14 +01:00
|
|
|
reflect "reflect"
|
2018-09-18 05:39:06 +01:00
|
|
|
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
2018-10-16 12:43:44 +01:00
|
|
|
|
2018-08-07 16:52:11 +01:00
|
|
|
dht "storj.io/storj/pkg/dht"
|
2018-10-15 18:42:36 +01:00
|
|
|
x "storj.io/storj/pkg/overlay"
|
|
|
|
pb "storj.io/storj/pkg/pb"
|
2018-08-07 16:52:11 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
// MockClient is a mock of Client interface
|
|
|
|
type MockClient struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockClientMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockClientMockRecorder is the mock recorder for MockClient
|
|
|
|
type MockClientMockRecorder struct {
|
|
|
|
mock *MockClient
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockClient creates a new mock instance
|
|
|
|
func NewMockClient(ctrl *gomock.Controller) *MockClient {
|
|
|
|
mock := &MockClient{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockClientMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockClient) EXPECT() *MockClientMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2018-10-15 18:42:36 +01:00
|
|
|
// Choose mocks base method
|
|
|
|
func (m *MockClient) Choose(ctx context.Context, op x.Options) ([]*pb.Node, error) {
|
|
|
|
ret := m.ctrl.Call(m, "Choose", ctx, op)
|
2018-09-18 05:39:06 +01:00
|
|
|
ret0, _ := ret[0].([]*pb.Node)
|
2018-09-11 05:52:14 +01:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2018-10-15 18:42:36 +01:00
|
|
|
// Choose indicates an expected call of Choose
|
|
|
|
func (mr *MockClientMockRecorder) Choose(ctx, op interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Choose", reflect.TypeOf((*MockClient)(nil).Choose), ctx, op)
|
2018-09-11 05:52:14 +01:00
|
|
|
}
|
|
|
|
|
2018-10-15 18:42:36 +01:00
|
|
|
// Lookup mocks base method
|
|
|
|
func (m *MockClient) Lookup(ctx context.Context, nodeID dht.NodeID) (*pb.Node, error) {
|
|
|
|
ret := m.ctrl.Call(m, "Lookup", ctx, nodeID)
|
|
|
|
ret0, _ := ret[0].(*pb.Node)
|
2018-08-07 16:52:11 +01:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2018-10-15 18:42:36 +01:00
|
|
|
// Lookup indicates an expected call of Lookup
|
|
|
|
func (mr *MockClientMockRecorder) Lookup(ctx, nodeID interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Lookup", reflect.TypeOf((*MockClient)(nil).Lookup), ctx, nodeID)
|
2018-08-07 16:52:11 +01:00
|
|
|
}
|
|
|
|
|
2018-10-15 18:42:36 +01:00
|
|
|
// BulkLookup mocks base method
|
|
|
|
func (m *MockClient) BulkLookup(ctx context.Context, nodeIDs []dht.NodeID) ([]*pb.Node, error) {
|
|
|
|
ret := m.ctrl.Call(m, "BulkLookup", ctx, nodeIDs)
|
|
|
|
ret0, _ := ret[0].([]*pb.Node)
|
2018-08-07 16:52:11 +01:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2018-10-15 18:42:36 +01:00
|
|
|
// BulkLookup indicates an expected call of BulkLookup
|
|
|
|
func (mr *MockClientMockRecorder) BulkLookup(ctx, nodeIDs interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BulkLookup", reflect.TypeOf((*MockClient)(nil).BulkLookup), ctx, nodeIDs)
|
2018-08-07 16:52:11 +01:00
|
|
|
}
|