2018-09-27 02:34:35 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2019-01-28 19:41:04 +00:00
|
|
|
// Source: github.com/prysmaticlabs/prysm/proto/beacon/rpc/v1 (interfaces: ValidatorServiceClient)
|
2018-09-27 02:34:35 +00:00
|
|
|
|
|
|
|
package internal
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
reflect "reflect"
|
|
|
|
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
v1 "github.com/prysmaticlabs/prysm/proto/beacon/rpc/v1"
|
2019-01-28 19:41:04 +00:00
|
|
|
grpc "google.golang.org/grpc"
|
2018-09-27 02:34:35 +00:00
|
|
|
)
|
|
|
|
|
2019-01-28 19:41:04 +00:00
|
|
|
// MockValidatorServiceClient is a mock of ValidatorServiceClient interface
|
|
|
|
type MockValidatorServiceClient struct {
|
2018-09-27 02:34:35 +00:00
|
|
|
ctrl *gomock.Controller
|
2019-01-28 19:41:04 +00:00
|
|
|
recorder *MockValidatorServiceClientMockRecorder
|
2018-09-27 02:34:35 +00:00
|
|
|
}
|
|
|
|
|
2019-01-28 19:41:04 +00:00
|
|
|
// MockValidatorServiceClientMockRecorder is the mock recorder for MockValidatorServiceClient
|
|
|
|
type MockValidatorServiceClientMockRecorder struct {
|
|
|
|
mock *MockValidatorServiceClient
|
2018-09-27 02:34:35 +00:00
|
|
|
}
|
|
|
|
|
2019-01-28 19:41:04 +00:00
|
|
|
// NewMockValidatorServiceClient creates a new mock instance
|
|
|
|
func NewMockValidatorServiceClient(ctrl *gomock.Controller) *MockValidatorServiceClient {
|
|
|
|
mock := &MockValidatorServiceClient{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockValidatorServiceClientMockRecorder{mock}
|
2018-09-27 02:34:35 +00:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
2019-01-28 19:41:04 +00:00
|
|
|
func (m *MockValidatorServiceClient) EXPECT() *MockValidatorServiceClientMockRecorder {
|
2018-09-27 02:34:35 +00:00
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2019-01-28 19:41:04 +00:00
|
|
|
// ValidatorEpochAssignments mocks base method
|
|
|
|
func (m *MockValidatorServiceClient) ValidatorEpochAssignments(arg0 context.Context, arg1 *v1.ValidatorEpochAssignmentsRequest, arg2 ...grpc.CallOption) (*v1.ValidatorEpochAssignmentsResponse, error) {
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "ValidatorEpochAssignments", varargs...)
|
|
|
|
ret0, _ := ret[0].(*v1.ValidatorEpochAssignmentsResponse)
|
2018-09-27 02:34:35 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-01-28 19:41:04 +00:00
|
|
|
// ValidatorEpochAssignments indicates an expected call of ValidatorEpochAssignments
|
|
|
|
func (mr *MockValidatorServiceClientMockRecorder) ValidatorEpochAssignments(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorEpochAssignments", reflect.TypeOf((*MockValidatorServiceClient)(nil).ValidatorEpochAssignments), varargs...)
|
2018-09-27 02:34:35 +00:00
|
|
|
}
|
|
|
|
|
2019-01-28 19:41:04 +00:00
|
|
|
// ValidatorIndex mocks base method
|
2019-01-29 12:56:14 +00:00
|
|
|
func (m *MockValidatorServiceClient) ValidatorIndex(arg0 context.Context, arg1 *v1.ValidatorIndexRequest, arg2 ...grpc.CallOption) (*v1.ValidatorIndexResponse, error) {
|
2019-01-28 19:41:04 +00:00
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "ValidatorIndex", varargs...)
|
|
|
|
ret0, _ := ret[0].(*v1.ValidatorIndexResponse)
|
2018-09-27 02:34:35 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-01-28 19:41:04 +00:00
|
|
|
// ValidatorIndex indicates an expected call of ValidatorIndex
|
|
|
|
func (mr *MockValidatorServiceClientMockRecorder) ValidatorIndex(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorIndex", reflect.TypeOf((*MockValidatorServiceClient)(nil).ValidatorIndex), varargs...)
|
2018-09-27 02:34:35 +00:00
|
|
|
}
|