mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 21:27:19 +00:00
91 lines
3.7 KiB
Go
91 lines
3.7 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/prysmaticlabs/prysm/proto/beacon/rpc/v1 (interfaces: ValidatorServiceClient)
|
|
|
|
package internal
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
v1 "github.com/prysmaticlabs/prysm/proto/beacon/rpc/v1"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// MockValidatorServiceClient is a mock of ValidatorServiceClient interface
|
|
type MockValidatorServiceClient struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockValidatorServiceClientMockRecorder
|
|
}
|
|
|
|
// MockValidatorServiceClientMockRecorder is the mock recorder for MockValidatorServiceClient
|
|
type MockValidatorServiceClientMockRecorder struct {
|
|
mock *MockValidatorServiceClient
|
|
}
|
|
|
|
// NewMockValidatorServiceClient creates a new mock instance
|
|
func NewMockValidatorServiceClient(ctrl *gomock.Controller) *MockValidatorServiceClient {
|
|
mock := &MockValidatorServiceClient{ctrl: ctrl}
|
|
mock.recorder = &MockValidatorServiceClientMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
func (m *MockValidatorServiceClient) EXPECT() *MockValidatorServiceClientMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// ValidatorIndex mocks base method
|
|
func (m *MockValidatorServiceClient) ValidatorIndex(arg0 context.Context, arg1 *v1.PublicKey, arg2 ...grpc.CallOption) (*v1.IndexResponse, error) {
|
|
varargs := []interface{}{arg0, arg1}
|
|
for _, a := range arg2 {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "ValidatorIndex", varargs...)
|
|
ret0, _ := ret[0].(*v1.IndexResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// 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...)
|
|
}
|
|
|
|
// ValidatorShardID mocks base method
|
|
func (m *MockValidatorServiceClient) ValidatorShardID(arg0 context.Context, arg1 *v1.PublicKey, arg2 ...grpc.CallOption) (*v1.ShardIDResponse, error) {
|
|
varargs := []interface{}{arg0, arg1}
|
|
for _, a := range arg2 {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "ValidatorShardID", varargs...)
|
|
ret0, _ := ret[0].(*v1.ShardIDResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ValidatorShardID indicates an expected call of ValidatorShardID
|
|
func (mr *MockValidatorServiceClientMockRecorder) ValidatorShardID(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorShardID", reflect.TypeOf((*MockValidatorServiceClient)(nil).ValidatorShardID), varargs...)
|
|
}
|
|
|
|
// ValidatorSlotAndResponsibility mocks base method
|
|
func (m *MockValidatorServiceClient) ValidatorSlotAndResponsibility(arg0 context.Context, arg1 *v1.PublicKey, arg2 ...grpc.CallOption) (*v1.SlotResponsibilityResponse, error) {
|
|
varargs := []interface{}{arg0, arg1}
|
|
for _, a := range arg2 {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "ValidatorSlotAndResponsibility", varargs...)
|
|
ret0, _ := ret[0].(*v1.SlotResponsibilityResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ValidatorSlotAndResponsibility indicates an expected call of ValidatorSlotAndResponsibility
|
|
func (mr *MockValidatorServiceClientMockRecorder) ValidatorSlotAndResponsibility(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorSlotAndResponsibility", reflect.TypeOf((*MockValidatorServiceClient)(nil).ValidatorSlotAndResponsibility), varargs...)
|
|
}
|