2022-12-05 10:27:41 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: validator/client/beacon-api/genesis.go
|
|
|
|
|
|
|
|
// Package mock is a generated GoMock package.
|
|
|
|
package mock
|
|
|
|
|
|
|
|
import (
|
2023-01-06 03:32:13 +00:00
|
|
|
context "context"
|
2022-12-05 10:27:41 +00:00
|
|
|
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.
|
2023-01-06 03:32:13 +00:00
|
|
|
func (m *MockgenesisProvider) GetGenesis(ctx context.Context) (*apimiddleware0.GenesisResponse_GenesisJson, *apimiddleware.DefaultErrorJson, error) {
|
2022-12-05 10:27:41 +00:00
|
|
|
m.ctrl.T.Helper()
|
2023-01-06 03:32:13 +00:00
|
|
|
ret := m.ctrl.Call(m, "GetGenesis", ctx)
|
2022-12-05 10:27:41 +00:00
|
|
|
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.
|
2023-01-06 03:32:13 +00:00
|
|
|
func (mr *MockgenesisProviderMockRecorder) GetGenesis(ctx interface{}) *gomock.Call {
|
2022-12-05 10:27:41 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-01-06 03:32:13 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGenesis", reflect.TypeOf((*MockgenesisProvider)(nil).GetGenesis), ctx)
|
2022-12-05 10:27:41 +00:00
|
|
|
}
|