prysm-pulse/validator/client/beacon-api/mock/genesis_mock.go
Patrice Vignola 943a0556e9
Add REST implementation for Validator's DomainData (#11711)
* Add REST implementation for Validator's DomainData

* Add missing dependency

* Fix getForkVersion logic

* Remove unused helpers

* Fix deepsource error

* Fix deepsource error

* Address PR comments

* Remove outdated comment

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-12-05 10:27:41 +00:00

53 lines
1.8 KiB
Go
Generated

// Code generated by MockGen. DO NOT EDIT.
// Source: validator/client/beacon-api/genesis.go
// Package mock is a generated GoMock package.
package mock
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
apimiddleware "github.com/prysmaticlabs/prysm/v3/api/gateway/apimiddleware"
apimiddleware0 "github.com/prysmaticlabs/prysm/v3/beacon-chain/rpc/apimiddleware"
)
// MockgenesisProvider is a mock of genesisProvider interface.
type MockgenesisProvider struct {
ctrl *gomock.Controller
recorder *MockgenesisProviderMockRecorder
}
// MockgenesisProviderMockRecorder is the mock recorder for MockgenesisProvider.
type MockgenesisProviderMockRecorder struct {
mock *MockgenesisProvider
}
// NewMockgenesisProvider creates a new mock instance.
func NewMockgenesisProvider(ctrl *gomock.Controller) *MockgenesisProvider {
mock := &MockgenesisProvider{ctrl: ctrl}
mock.recorder = &MockgenesisProviderMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockgenesisProvider) EXPECT() *MockgenesisProviderMockRecorder {
return m.recorder
}
// GetGenesis mocks base method.
func (m *MockgenesisProvider) GetGenesis() (*apimiddleware0.GenesisResponse_GenesisJson, *apimiddleware.DefaultErrorJson, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetGenesis")
ret0, _ := ret[0].(*apimiddleware0.GenesisResponse_GenesisJson)
ret1, _ := ret[1].(*apimiddleware.DefaultErrorJson)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetGenesis indicates an expected call of GetGenesis.
func (mr *MockgenesisProviderMockRecorder) GetGenesis() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGenesis", reflect.TypeOf((*MockgenesisProvider)(nil).GetGenesis))
}