mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-30 15:06:31 +00:00
e452b46873
* Remove verifySignatures from ProposerSlashings * Remove flag from process transfers * resolve all conflicts * fix more references to old pbs * Fix merge conflicts * Remove verifySignature flag from ProcessBlockHeader * fx spectest * Fix test errors * Fix tests * Fix tests * Goimports * Fix test finally * Move test helpers to testutil * Goimports * Fix imports * Add tests for new helpers * Run gazelle * Fix tests
218 lines
8.6 KiB
Go
Generated
218 lines
8.6 KiB
Go
Generated
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/prysmaticlabs/prysm/proto/beacon/rpc/v1 (interfaces: BeaconServiceServer,BeaconService_WaitForChainStartServer)
|
|
|
|
// Package internal is a generated GoMock package.
|
|
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/rpc/v1"
|
|
v1alpha1 "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1"
|
|
metadata "google.golang.org/grpc/metadata"
|
|
)
|
|
|
|
// MockBeaconServiceServer is a mock of BeaconServiceServer interface
|
|
type MockBeaconServiceServer struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockBeaconServiceServerMockRecorder
|
|
}
|
|
|
|
// MockBeaconServiceServerMockRecorder is the mock recorder for MockBeaconServiceServer
|
|
type MockBeaconServiceServerMockRecorder struct {
|
|
mock *MockBeaconServiceServer
|
|
}
|
|
|
|
// NewMockBeaconServiceServer creates a new mock instance
|
|
func NewMockBeaconServiceServer(ctrl *gomock.Controller) *MockBeaconServiceServer {
|
|
mock := &MockBeaconServiceServer{ctrl: ctrl}
|
|
mock.recorder = &MockBeaconServiceServerMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
func (m *MockBeaconServiceServer) EXPECT() *MockBeaconServiceServerMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// BlockTree mocks base method
|
|
func (m *MockBeaconServiceServer) BlockTree(arg0 context.Context, arg1 *types.Empty) (*v1.BlockTreeResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "BlockTree", arg0, arg1)
|
|
ret0, _ := ret[0].(*v1.BlockTreeResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// BlockTree indicates an expected call of BlockTree
|
|
func (mr *MockBeaconServiceServerMockRecorder) BlockTree(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockTree", reflect.TypeOf((*MockBeaconServiceServer)(nil).BlockTree), arg0, arg1)
|
|
}
|
|
|
|
// BlockTreeBySlots mocks base method
|
|
func (m *MockBeaconServiceServer) BlockTreeBySlots(arg0 context.Context, arg1 *v1.TreeBlockSlotRequest) (*v1.BlockTreeResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "BlockTreeBySlots", arg0, arg1)
|
|
ret0, _ := ret[0].(*v1.BlockTreeResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// BlockTreeBySlots indicates an expected call of BlockTreeBySlots
|
|
func (mr *MockBeaconServiceServerMockRecorder) BlockTreeBySlots(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockTreeBySlots", reflect.TypeOf((*MockBeaconServiceServer)(nil).BlockTreeBySlots), arg0, arg1)
|
|
}
|
|
|
|
// CanonicalHead mocks base method
|
|
func (m *MockBeaconServiceServer) CanonicalHead(arg0 context.Context, arg1 *types.Empty) (*v1alpha1.BeaconBlock, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CanonicalHead", arg0, arg1)
|
|
ret0, _ := ret[0].(*v1alpha1.BeaconBlock)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// CanonicalHead indicates an expected call of CanonicalHead
|
|
func (mr *MockBeaconServiceServerMockRecorder) CanonicalHead(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CanonicalHead", reflect.TypeOf((*MockBeaconServiceServer)(nil).CanonicalHead), arg0, arg1)
|
|
}
|
|
|
|
// WaitForChainStart mocks base method
|
|
func (m *MockBeaconServiceServer) WaitForChainStart(arg0 *types.Empty, arg1 v1.BeaconService_WaitForChainStartServer) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "WaitForChainStart", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// WaitForChainStart indicates an expected call of WaitForChainStart
|
|
func (mr *MockBeaconServiceServerMockRecorder) WaitForChainStart(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForChainStart", reflect.TypeOf((*MockBeaconServiceServer)(nil).WaitForChainStart), arg0, arg1)
|
|
}
|
|
|
|
// MockBeaconService_WaitForChainStartServer is a mock of BeaconService_WaitForChainStartServer interface
|
|
type MockBeaconService_WaitForChainStartServer struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockBeaconService_WaitForChainStartServerMockRecorder
|
|
}
|
|
|
|
// MockBeaconService_WaitForChainStartServerMockRecorder is the mock recorder for MockBeaconService_WaitForChainStartServer
|
|
type MockBeaconService_WaitForChainStartServerMockRecorder struct {
|
|
mock *MockBeaconService_WaitForChainStartServer
|
|
}
|
|
|
|
// NewMockBeaconService_WaitForChainStartServer creates a new mock instance
|
|
func NewMockBeaconService_WaitForChainStartServer(ctrl *gomock.Controller) *MockBeaconService_WaitForChainStartServer {
|
|
mock := &MockBeaconService_WaitForChainStartServer{ctrl: ctrl}
|
|
mock.recorder = &MockBeaconService_WaitForChainStartServerMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
func (m *MockBeaconService_WaitForChainStartServer) EXPECT() *MockBeaconService_WaitForChainStartServerMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Context mocks base method
|
|
func (m *MockBeaconService_WaitForChainStartServer) Context() context.Context {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Context")
|
|
ret0, _ := ret[0].(context.Context)
|
|
return ret0
|
|
}
|
|
|
|
// Context indicates an expected call of Context
|
|
func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) Context() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockBeaconService_WaitForChainStartServer)(nil).Context))
|
|
}
|
|
|
|
// RecvMsg mocks base method
|
|
func (m *MockBeaconService_WaitForChainStartServer) RecvMsg(arg0 interface{}) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "RecvMsg", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// RecvMsg indicates an expected call of RecvMsg
|
|
func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockBeaconService_WaitForChainStartServer)(nil).RecvMsg), arg0)
|
|
}
|
|
|
|
// Send mocks base method
|
|
func (m *MockBeaconService_WaitForChainStartServer) Send(arg0 *v1.ChainStartResponse) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Send", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Send indicates an expected call of Send
|
|
func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) Send(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockBeaconService_WaitForChainStartServer)(nil).Send), arg0)
|
|
}
|
|
|
|
// SendHeader mocks base method
|
|
func (m *MockBeaconService_WaitForChainStartServer) SendHeader(arg0 metadata.MD) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SendHeader", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// SendHeader indicates an expected call of SendHeader
|
|
func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendHeader", reflect.TypeOf((*MockBeaconService_WaitForChainStartServer)(nil).SendHeader), arg0)
|
|
}
|
|
|
|
// SendMsg mocks base method
|
|
func (m *MockBeaconService_WaitForChainStartServer) SendMsg(arg0 interface{}) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SendMsg", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// SendMsg indicates an expected call of SendMsg
|
|
func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockBeaconService_WaitForChainStartServer)(nil).SendMsg), arg0)
|
|
}
|
|
|
|
// SetHeader mocks base method
|
|
func (m *MockBeaconService_WaitForChainStartServer) SetHeader(arg0 metadata.MD) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SetHeader", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// SetHeader indicates an expected call of SetHeader
|
|
func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeader", reflect.TypeOf((*MockBeaconService_WaitForChainStartServer)(nil).SetHeader), arg0)
|
|
}
|
|
|
|
// SetTrailer mocks base method
|
|
func (m *MockBeaconService_WaitForChainStartServer) SetTrailer(arg0 metadata.MD) {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "SetTrailer", arg0)
|
|
}
|
|
|
|
// SetTrailer indicates an expected call of SetTrailer
|
|
func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTrailer", reflect.TypeOf((*MockBeaconService_WaitForChainStartServer)(nil).SetTrailer), arg0)
|
|
}
|