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_StreamBlocksClient)
|
|
|
|
|
|
|
|
// Package mock is a generated GoMock package.
|
|
|
|
package mock
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
reflect "reflect"
|
|
|
|
|
2024-02-15 05:46:47 +00:00
|
|
|
v2 "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
2024-02-21 18:37:17 +00:00
|
|
|
gomock "go.uber.org/mock/gomock"
|
2021-08-24 21:38:44 +00:00
|
|
|
metadata "google.golang.org/grpc/metadata"
|
|
|
|
)
|
|
|
|
|
2023-10-20 16:45:33 +00:00
|
|
|
// BeaconNodeValidatorAltair_StreamBlocksClient is a mock of BeaconNodeValidatorAltair_StreamBlocksClient interface
|
|
|
|
type BeaconNodeValidatorAltair_StreamBlocksClient struct {
|
2021-08-24 21:38:44 +00:00
|
|
|
ctrl *gomock.Controller
|
2023-10-20 16:45:33 +00:00
|
|
|
recorder *BeaconNodeValidatorAltair_StreamBlocksClientMockRecorder
|
2021-08-24 21:38:44 +00:00
|
|
|
}
|
|
|
|
|
2023-10-20 16:45:33 +00:00
|
|
|
// BeaconNodeValidatorAltair_StreamBlocksClientMockRecorder is the mock recorder for MockBeaconNodeValidatorAltair_StreamBlocksClient
|
|
|
|
type BeaconNodeValidatorAltair_StreamBlocksClientMockRecorder struct {
|
|
|
|
mock *BeaconNodeValidatorAltair_StreamBlocksClient
|
2021-08-24 21:38:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockBeaconNodeValidatorAltair_StreamBlocksClient creates a new mock instance
|
2023-10-20 16:45:33 +00:00
|
|
|
func NewMockBeaconNodeValidatorAltair_StreamBlocksClient(ctrl *gomock.Controller) *BeaconNodeValidatorAltair_StreamBlocksClient {
|
|
|
|
mock := &BeaconNodeValidatorAltair_StreamBlocksClient{ctrl: ctrl}
|
|
|
|
mock.recorder = &BeaconNodeValidatorAltair_StreamBlocksClientMockRecorder{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_StreamBlocksClient) EXPECT() *BeaconNodeValidatorAltair_StreamBlocksClientMockRecorder {
|
2021-08-24 21:38:44 +00:00
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// CloseSend mocks base method
|
2023-10-20 16:45:33 +00:00
|
|
|
func (m *BeaconNodeValidatorAltair_StreamBlocksClient) CloseSend() error {
|
2021-08-24 21:38:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "CloseSend")
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// CloseSend indicates an expected call of CloseSend
|
2023-10-20 16:45:33 +00:00
|
|
|
func (mr *BeaconNodeValidatorAltair_StreamBlocksClientMockRecorder) CloseSend() *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, "CloseSend", reflect.TypeOf((*BeaconNodeValidatorAltair_StreamBlocksClient)(nil).CloseSend))
|
2021-08-24 21:38:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Context mocks base method
|
2023-10-20 16:45:33 +00:00
|
|
|
func (m *BeaconNodeValidatorAltair_StreamBlocksClient) 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_StreamBlocksClientMockRecorder) 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_StreamBlocksClient)(nil).Context))
|
2021-08-24 21:38:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Header mocks base method
|
2023-10-20 16:45:33 +00:00
|
|
|
func (m *BeaconNodeValidatorAltair_StreamBlocksClient) Header() (metadata.MD, error) {
|
2021-08-24 21:38:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Header")
|
|
|
|
ret0, _ := ret[0].(metadata.MD)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Header indicates an expected call of Header
|
2023-10-20 16:45:33 +00:00
|
|
|
func (mr *BeaconNodeValidatorAltair_StreamBlocksClientMockRecorder) Header() *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, "Header", reflect.TypeOf((*BeaconNodeValidatorAltair_StreamBlocksClient)(nil).Header))
|
2021-08-24 21:38:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Recv mocks base method
|
2023-10-20 16:45:33 +00:00
|
|
|
func (m *BeaconNodeValidatorAltair_StreamBlocksClient) Recv() (*v2.StreamBlocksResponse, error) {
|
2021-08-24 21:38:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Recv")
|
|
|
|
ret0, _ := ret[0].(*v2.StreamBlocksResponse)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Recv indicates an expected call of Recv
|
2023-10-20 16:45:33 +00:00
|
|
|
func (mr *BeaconNodeValidatorAltair_StreamBlocksClientMockRecorder) Recv() *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, "Recv", reflect.TypeOf((*BeaconNodeValidatorAltair_StreamBlocksClient)(nil).Recv))
|
2021-08-24 21:38:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// RecvMsg mocks base method
|
2023-10-20 16:45:33 +00:00
|
|
|
func (m *BeaconNodeValidatorAltair_StreamBlocksClient) 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_StreamBlocksClientMockRecorder) 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_StreamBlocksClient)(nil).RecvMsg), arg0)
|
2021-08-24 21:38:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SendMsg mocks base method
|
2023-10-20 16:45:33 +00:00
|
|
|
func (m *BeaconNodeValidatorAltair_StreamBlocksClient) 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_StreamBlocksClientMockRecorder) 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_StreamBlocksClient)(nil).SendMsg), arg0)
|
2021-08-24 21:38:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Trailer mocks base method
|
2023-10-20 16:45:33 +00:00
|
|
|
func (m *BeaconNodeValidatorAltair_StreamBlocksClient) Trailer() metadata.MD {
|
2021-08-24 21:38:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Trailer")
|
|
|
|
ret0, _ := ret[0].(metadata.MD)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Trailer indicates an expected call of Trailer
|
2023-10-20 16:45:33 +00:00
|
|
|
func (mr *BeaconNodeValidatorAltair_StreamBlocksClientMockRecorder) Trailer() *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, "Trailer", reflect.TypeOf((*BeaconNodeValidatorAltair_StreamBlocksClient)(nil).Trailer))
|
2021-08-24 21:38:44 +00:00
|
|
|
}
|