mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 02:31:19 +00:00
4c46b02dac
* begin reorder * move into beacon server * add proposer server * fix * add proposer server * wrap up rpc reorder * eliminated deprecated RPC endpoints * formatted nicely * RPC protos * fix lint * integrate hash proto * autoclean * deprecate all old code * include the rest of methods mocks * bazel run * lint fixes
75 lines
2.9 KiB
Go
75 lines
2.9 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/prysmaticlabs/prysm/proto/beacon/rpc/v1 (interfaces: BeaconServiceClient)
|
|
|
|
package internal
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
types "github.com/gogo/protobuf/types"
|
|
gomock "github.com/golang/mock/gomock"
|
|
v1 "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
|
|
v10 "github.com/prysmaticlabs/prysm/proto/beacon/rpc/v1"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// MockBeaconServiceClient is a mock of BeaconServiceClient interface
|
|
type MockBeaconServiceClient struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockBeaconServiceClientMockRecorder
|
|
}
|
|
|
|
// MockBeaconServiceClientMockRecorder is the mock recorder for MockBeaconServiceClient
|
|
type MockBeaconServiceClientMockRecorder struct {
|
|
mock *MockBeaconServiceClient
|
|
}
|
|
|
|
// NewMockBeaconServiceClient creates a new mock instance
|
|
func NewMockBeaconServiceClient(ctrl *gomock.Controller) *MockBeaconServiceClient {
|
|
mock := &MockBeaconServiceClient{ctrl: ctrl}
|
|
mock.recorder = &MockBeaconServiceClientMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
func (m *MockBeaconServiceClient) EXPECT() *MockBeaconServiceClientMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// CanonicalHead mocks base method
|
|
func (m *MockBeaconServiceClient) CanonicalHead(arg0 context.Context, arg1 *types.Empty, arg2 ...grpc.CallOption) (*v1.BeaconBlock, error) {
|
|
varargs := []interface{}{arg0, arg1}
|
|
for _, a := range arg2 {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "CanonicalHead", varargs...)
|
|
ret0, _ := ret[0].(*v1.BeaconBlock)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// CanonicalHead indicates an expected call of CanonicalHead
|
|
func (mr *MockBeaconServiceClientMockRecorder) CanonicalHead(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CanonicalHead", reflect.TypeOf((*MockBeaconServiceClient)(nil).CanonicalHead), varargs...)
|
|
}
|
|
|
|
// LatestAttestation mocks base method
|
|
func (m *MockBeaconServiceClient) LatestAttestation(arg0 context.Context, arg1 *types.Empty, arg2 ...grpc.CallOption) (v10.BeaconService_LatestAttestationClient, error) {
|
|
varargs := []interface{}{arg0, arg1}
|
|
for _, a := range arg2 {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "LatestAttestation", varargs...)
|
|
ret0, _ := ret[0].(v10.BeaconService_LatestAttestationClient)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// LatestAttestation indicates an expected call of LatestAttestation
|
|
func (mr *MockBeaconServiceClientMockRecorder) LatestAttestation(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LatestAttestation", reflect.TypeOf((*MockBeaconServiceClient)(nil).LatestAttestation), varargs...)
|
|
}
|