mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
2793ef6ec1
* move mocks to the owner packages * squash single file packages * move types to more appropriate files * remove unused mocks
97 lines
3.4 KiB
Go
97 lines
3.4 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/ledgerwatch/erigon/polygon/sync (interfaces: Heimdall)
|
|
|
|
// Package sync is a generated GoMock package.
|
|
package sync
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
checkpoint "github.com/ledgerwatch/erigon/polygon/heimdall"
|
|
)
|
|
|
|
// MockHeimdall is a mock of Heimdall interface.
|
|
type MockHeimdall struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockHeimdallMockRecorder
|
|
}
|
|
|
|
// MockHeimdallMockRecorder is the mock recorder for MockHeimdall.
|
|
type MockHeimdallMockRecorder struct {
|
|
mock *MockHeimdall
|
|
}
|
|
|
|
// NewMockHeimdall creates a new mock instance.
|
|
func NewMockHeimdall(ctrl *gomock.Controller) *MockHeimdall {
|
|
mock := &MockHeimdall{ctrl: ctrl}
|
|
mock.recorder = &MockHeimdallMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockHeimdall) EXPECT() *MockHeimdallMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// FetchCheckpoints mocks base method.
|
|
func (m *MockHeimdall) FetchCheckpoints(arg0 context.Context, arg1 uint64) ([]*checkpoint.Checkpoint, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "FetchCheckpoints", arg0, arg1)
|
|
ret0, _ := ret[0].([]*checkpoint.Checkpoint)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// FetchCheckpoints indicates an expected call of FetchCheckpoints.
|
|
func (mr *MockHeimdallMockRecorder) FetchCheckpoints(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchCheckpoints", reflect.TypeOf((*MockHeimdall)(nil).FetchCheckpoints), arg0, arg1)
|
|
}
|
|
|
|
// FetchMilestones mocks base method.
|
|
func (m *MockHeimdall) FetchMilestones(arg0 context.Context, arg1 uint64) ([]*checkpoint.Milestone, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "FetchMilestones", arg0, arg1)
|
|
ret0, _ := ret[0].([]*checkpoint.Milestone)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// FetchMilestones indicates an expected call of FetchMilestones.
|
|
func (mr *MockHeimdallMockRecorder) FetchMilestones(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchMilestones", reflect.TypeOf((*MockHeimdall)(nil).FetchMilestones), arg0, arg1)
|
|
}
|
|
|
|
// FetchSpan mocks base method.
|
|
func (m *MockHeimdall) FetchSpan(arg0 context.Context, arg1 uint64) (*checkpoint.HeimdallSpan, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "FetchSpan", arg0, arg1)
|
|
ret0, _ := ret[0].(*checkpoint.HeimdallSpan)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// FetchSpan indicates an expected call of FetchSpan.
|
|
func (mr *MockHeimdallMockRecorder) FetchSpan(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchSpan", reflect.TypeOf((*MockHeimdall)(nil).FetchSpan), arg0, arg1)
|
|
}
|
|
|
|
// OnMilestoneEvent mocks base method.
|
|
func (m *MockHeimdall) OnMilestoneEvent(arg0 context.Context, arg1 func(*checkpoint.Milestone)) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "OnMilestoneEvent", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// OnMilestoneEvent indicates an expected call of OnMilestoneEvent.
|
|
func (mr *MockHeimdallMockRecorder) OnMilestoneEvent(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnMilestoneEvent", reflect.TypeOf((*MockHeimdall)(nil).OnMilestoneEvent), arg0, arg1)
|
|
}
|