2018-09-11 17:08:31 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: github.com/prysmaticlabs/prysm/proto/beacon/rpc/v1 (interfaces: AttesterServiceClient)
|
|
|
|
|
2019-02-19 23:31:04 +00:00
|
|
|
// Package internal is a generated GoMock package.
|
2018-09-11 17:08:31 +00:00
|
|
|
package internal
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2019-02-05 15:46:32 +00:00
|
|
|
reflect "reflect"
|
|
|
|
|
2018-09-11 17:08:31 +00:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
2019-02-06 16:20:38 +00:00
|
|
|
v1 "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
|
|
|
|
v10 "github.com/prysmaticlabs/prysm/proto/beacon/rpc/v1"
|
2018-09-11 17:08:31 +00:00
|
|
|
grpc "google.golang.org/grpc"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MockAttesterServiceClient is a mock of AttesterServiceClient interface
|
|
|
|
type MockAttesterServiceClient struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockAttesterServiceClientMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockAttesterServiceClientMockRecorder is the mock recorder for MockAttesterServiceClient
|
|
|
|
type MockAttesterServiceClientMockRecorder struct {
|
|
|
|
mock *MockAttesterServiceClient
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockAttesterServiceClient creates a new mock instance
|
|
|
|
func NewMockAttesterServiceClient(ctrl *gomock.Controller) *MockAttesterServiceClient {
|
|
|
|
mock := &MockAttesterServiceClient{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockAttesterServiceClientMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockAttesterServiceClient) EXPECT() *MockAttesterServiceClientMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// AttestHead mocks base method
|
2019-02-06 16:20:38 +00:00
|
|
|
func (m *MockAttesterServiceClient) AttestHead(arg0 context.Context, arg1 *v1.Attestation, arg2 ...grpc.CallOption) (*v10.AttestResponse, error) {
|
|
|
|
m.ctrl.T.Helper()
|
2018-09-11 17:08:31 +00:00
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "AttestHead", varargs...)
|
2019-02-06 16:20:38 +00:00
|
|
|
ret0, _ := ret[0].(*v10.AttestResponse)
|
2018-09-11 17:08:31 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// AttestHead indicates an expected call of AttestHead
|
|
|
|
func (mr *MockAttesterServiceClientMockRecorder) AttestHead(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
2019-02-06 16:20:38 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-09-11 17:08:31 +00:00
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttestHead", reflect.TypeOf((*MockAttesterServiceClient)(nil).AttestHead), varargs...)
|
|
|
|
}
|
2019-02-06 16:20:38 +00:00
|
|
|
|
2019-02-27 20:21:15 +00:00
|
|
|
// AttestationDataAtSlot mocks base method
|
|
|
|
func (m *MockAttesterServiceClient) AttestationDataAtSlot(arg0 context.Context, arg1 *v10.AttestationDataRequest, arg2 ...grpc.CallOption) (*v10.AttestationDataResponse, error) {
|
2019-02-06 16:20:38 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
2019-02-27 20:21:15 +00:00
|
|
|
ret := m.ctrl.Call(m, "AttestationDataAtSlot", varargs...)
|
|
|
|
ret0, _ := ret[0].(*v10.AttestationDataResponse)
|
2019-02-06 16:20:38 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-02-27 20:21:15 +00:00
|
|
|
// AttestationDataAtSlot indicates an expected call of AttestationDataAtSlot
|
|
|
|
func (mr *MockAttesterServiceClientMockRecorder) AttestationDataAtSlot(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
2019-02-06 16:20:38 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
2019-02-27 20:21:15 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttestationDataAtSlot", reflect.TypeOf((*MockAttesterServiceClient)(nil).AttestationDataAtSlot), varargs...)
|
2019-02-06 16:20:38 +00:00
|
|
|
}
|