2021-08-24 21:38:44 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1 (interfaces: BeaconNodeValidatorAltair_StreamBlocksServer)
|
|
|
|
|
|
|
|
// Package mock is a generated GoMock package.
|
|
|
|
package mock
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
reflect "reflect"
|
|
|
|
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
2023-03-17 18:52:56 +00:00
|
|
|
v2 "github.com/prysmaticlabs/prysm/v4/proto/prysm/v1alpha1"
|
2021-08-24 21:38:44 +00:00
|
|
|
metadata "google.golang.org/grpc/metadata"
|
|
|
|
)
|
|
|
|
|
2023-10-20 16:45:33 +00:00
|
|
|
// BeaconNodeValidatorAltair_StreamBlocksServer is a mock of BeaconNodeValidatorAltair_StreamBlocksServer interface
|
|
|
|
type BeaconNodeValidatorAltair_StreamBlocksServer struct {
|
2021-08-24 21:38:44 +00:00
|
|
|
ctrl *gomock.Controller
|
2023-10-20 16:45:33 +00:00
|
|
|
recorder *BeaconNodeValidatorAltair_StreamBlocksServerMockRecorder
|
2021-08-24 21:38:44 +00:00
|
|
|
}
|
|
|
|
|
2023-10-20 16:45:33 +00:00
|
|
|
// BeaconNodeValidatorAltair_StreamBlocksServerMockRecorder is the mock recorder for MockBeaconNodeValidatorAltair_StreamBlocksServer
|
|
|
|
type BeaconNodeValidatorAltair_StreamBlocksServerMockRecorder struct {
|
|
|
|
mock *BeaconNodeValidatorAltair_StreamBlocksServer
|
2021-08-24 21:38:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockBeaconNodeValidatorAltair_StreamBlocksServer creates a new mock instance
|
2023-10-20 16:45:33 +00:00
|
|
|
func NewMockBeaconNodeValidatorAltair_StreamBlocksServer(ctrl *gomock.Controller) *BeaconNodeValidatorAltair_StreamBlocksServer {
|
|
|
|
mock := &BeaconNodeValidatorAltair_StreamBlocksServer{ctrl: ctrl}
|
|
|
|
mock.recorder = &BeaconNodeValidatorAltair_StreamBlocksServerMockRecorder{mock}
|
2021-08-24 21:38:44 +00:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
2023-10-20 16:45:33 +00:00
|
|
|
func (m *BeaconNodeValidatorAltair_StreamBlocksServer) EXPECT() *BeaconNodeValidatorAltair_StreamBlocksServerMockRecorder {
|
2021-08-24 21:38:44 +00:00
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// Context mocks base method
|
2023-10-20 16:45:33 +00:00
|
|
|
func (m *BeaconNodeValidatorAltair_StreamBlocksServer) Context() context.Context {
|
2021-08-24 21:38:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Context")
|
|
|
|
ret0, _ := ret[0].(context.Context)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Context indicates an expected call of Context
|
2023-10-20 16:45:33 +00:00
|
|
|
func (mr *BeaconNodeValidatorAltair_StreamBlocksServerMockRecorder) Context() *gomock.Call {
|
2021-08-24 21:38:44 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-10-20 16:45:33 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*BeaconNodeValidatorAltair_StreamBlocksServer)(nil).Context))
|
2021-08-24 21:38:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// RecvMsg mocks base method
|
2023-10-20 16:45:33 +00:00
|
|
|
func (m *BeaconNodeValidatorAltair_StreamBlocksServer) RecvMsg(arg0 interface{}) error {
|
2021-08-24 21:38:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "RecvMsg", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// RecvMsg indicates an expected call of RecvMsg
|
2023-10-20 16:45:33 +00:00
|
|
|
func (mr *BeaconNodeValidatorAltair_StreamBlocksServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call {
|
2021-08-24 21:38:44 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-10-20 16:45:33 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*BeaconNodeValidatorAltair_StreamBlocksServer)(nil).RecvMsg), arg0)
|
2021-08-24 21:38:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Send mocks base method
|
2023-10-20 16:45:33 +00:00
|
|
|
func (m *BeaconNodeValidatorAltair_StreamBlocksServer) Send(arg0 *v2.StreamBlocksResponse) error {
|
2021-08-24 21:38:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Send", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Send indicates an expected call of Send
|
2023-10-20 16:45:33 +00:00
|
|
|
func (mr *BeaconNodeValidatorAltair_StreamBlocksServerMockRecorder) Send(arg0 interface{}) *gomock.Call {
|
2021-08-24 21:38:44 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-10-20 16:45:33 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*BeaconNodeValidatorAltair_StreamBlocksServer)(nil).Send), arg0)
|
2021-08-24 21:38:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SendHeader mocks base method
|
2023-10-20 16:45:33 +00:00
|
|
|
func (m *BeaconNodeValidatorAltair_StreamBlocksServer) SendHeader(arg0 metadata.MD) error {
|
2021-08-24 21:38:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SendHeader", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// SendHeader indicates an expected call of SendHeader
|
2023-10-20 16:45:33 +00:00
|
|
|
func (mr *BeaconNodeValidatorAltair_StreamBlocksServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call {
|
2021-08-24 21:38:44 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-10-20 16:45:33 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendHeader", reflect.TypeOf((*BeaconNodeValidatorAltair_StreamBlocksServer)(nil).SendHeader), arg0)
|
2021-08-24 21:38:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SendMsg mocks base method
|
2023-10-20 16:45:33 +00:00
|
|
|
func (m *BeaconNodeValidatorAltair_StreamBlocksServer) SendMsg(arg0 interface{}) error {
|
2021-08-24 21:38:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SendMsg", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// SendMsg indicates an expected call of SendMsg
|
2023-10-20 16:45:33 +00:00
|
|
|
func (mr *BeaconNodeValidatorAltair_StreamBlocksServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call {
|
2021-08-24 21:38:44 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-10-20 16:45:33 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*BeaconNodeValidatorAltair_StreamBlocksServer)(nil).SendMsg), arg0)
|
2021-08-24 21:38:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetHeader mocks base method
|
2023-10-20 16:45:33 +00:00
|
|
|
func (m *BeaconNodeValidatorAltair_StreamBlocksServer) SetHeader(arg0 metadata.MD) error {
|
2021-08-24 21:38:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SetHeader", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetHeader indicates an expected call of SetHeader
|
2023-10-20 16:45:33 +00:00
|
|
|
func (mr *BeaconNodeValidatorAltair_StreamBlocksServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call {
|
2021-08-24 21:38:44 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-10-20 16:45:33 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeader", reflect.TypeOf((*BeaconNodeValidatorAltair_StreamBlocksServer)(nil).SetHeader), arg0)
|
2021-08-24 21:38:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetTrailer mocks base method
|
2023-10-20 16:45:33 +00:00
|
|
|
func (m *BeaconNodeValidatorAltair_StreamBlocksServer) SetTrailer(arg0 metadata.MD) {
|
2021-08-24 21:38:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
m.ctrl.Call(m, "SetTrailer", arg0)
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetTrailer indicates an expected call of SetTrailer
|
2023-10-20 16:45:33 +00:00
|
|
|
func (mr *BeaconNodeValidatorAltair_StreamBlocksServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call {
|
2021-08-24 21:38:44 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-10-20 16:45:33 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTrailer", reflect.TypeOf((*BeaconNodeValidatorAltair_StreamBlocksServer)(nil).SetTrailer), arg0)
|
2021-08-24 21:38:44 +00:00
|
|
|
}
|