2018-08-07 16:52:11 +01:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: storj.io/storj/pkg/overlay (interfaces: Client)
|
|
|
|
|
|
|
|
// 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-08-07 16:52:11 +01:00
|
|
|
dht "storj.io/storj/pkg/dht"
|
2018-09-18 05:39:06 +01:00
|
|
|
"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-09-11 05:52:14 +01:00
|
|
|
// BulkLookup mocks base method
|
2018-09-18 05:39:06 +01:00
|
|
|
func (m *MockClient) BulkLookup(arg0 context.Context, arg1 []dht.NodeID) ([]*pb.Node, error) {
|
2018-09-11 05:52:14 +01:00
|
|
|
ret := m.ctrl.Call(m, "BulkLookup", arg0, arg1)
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
// BulkLookup indicates an expected call of BulkLookup
|
|
|
|
func (mr *MockClientMockRecorder) BulkLookup(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BulkLookup", reflect.TypeOf((*MockClient)(nil).BulkLookup), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2018-08-07 16:52:11 +01:00
|
|
|
// Choose mocks base method
|
2018-09-18 05:39:06 +01:00
|
|
|
func (m *MockClient) Choose(arg0 context.Context, arg1 int, arg2 int64) ([]*pb.Node, error) {
|
2018-08-07 16:52:11 +01:00
|
|
|
ret := m.ctrl.Call(m, "Choose", arg0, arg1, arg2)
|
2018-09-18 05:39:06 +01:00
|
|
|
ret0, _ := ret[0].([]*pb.Node)
|
2018-08-07 16:52:11 +01:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Choose indicates an expected call of Choose
|
|
|
|
func (mr *MockClientMockRecorder) Choose(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Choose", reflect.TypeOf((*MockClient)(nil).Choose), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Lookup mocks base method
|
2018-09-18 05:39:06 +01:00
|
|
|
func (m *MockClient) Lookup(arg0 context.Context, arg1 dht.NodeID) (*pb.Node, error) {
|
2018-08-07 16:52:11 +01:00
|
|
|
ret := m.ctrl.Call(m, "Lookup", arg0, arg1)
|
2018-09-18 05:39:06 +01:00
|
|
|
ret0, _ := ret[0].(*pb.Node)
|
2018-08-07 16:52:11 +01:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Lookup indicates an expected call of Lookup
|
|
|
|
func (mr *MockClientMockRecorder) Lookup(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Lookup", reflect.TypeOf((*MockClient)(nil).Lookup), arg0, arg1)
|
|
|
|
}
|