github.com/palisadeinc/bor@v0.0.0-20230615125219-ab7196213d15/tests/bor/mocks/IHeimdallClient.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/ethereum/go-ethereum/consensus/bor (interfaces: IHeimdallClient) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 clerk "github.com/ethereum/go-ethereum/consensus/bor/clerk" 12 checkpoint "github.com/ethereum/go-ethereum/consensus/bor/heimdall/checkpoint" 13 span "github.com/ethereum/go-ethereum/consensus/bor/heimdall/span" 14 gomock "github.com/golang/mock/gomock" 15 ) 16 17 // MockIHeimdallClient is a mock of IHeimdallClient interface. 18 type MockIHeimdallClient struct { 19 ctrl *gomock.Controller 20 recorder *MockIHeimdallClientMockRecorder 21 } 22 23 // MockIHeimdallClientMockRecorder is the mock recorder for MockIHeimdallClient. 24 type MockIHeimdallClientMockRecorder struct { 25 mock *MockIHeimdallClient 26 } 27 28 // NewMockIHeimdallClient creates a new mock instance. 29 func NewMockIHeimdallClient(ctrl *gomock.Controller) *MockIHeimdallClient { 30 mock := &MockIHeimdallClient{ctrl: ctrl} 31 mock.recorder = &MockIHeimdallClientMockRecorder{mock} 32 return mock 33 } 34 35 // EXPECT returns an object that allows the caller to indicate expected use. 36 func (m *MockIHeimdallClient) EXPECT() *MockIHeimdallClientMockRecorder { 37 return m.recorder 38 } 39 40 // Close mocks base method. 41 func (m *MockIHeimdallClient) Close() { 42 m.ctrl.T.Helper() 43 m.ctrl.Call(m, "Close") 44 } 45 46 // Close indicates an expected call of Close. 47 func (mr *MockIHeimdallClientMockRecorder) Close() *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockIHeimdallClient)(nil).Close)) 50 } 51 52 // FetchCheckpoint mocks base method. 53 func (m *MockIHeimdallClient) FetchCheckpoint(arg0 context.Context, arg1 int64) (*checkpoint.Checkpoint, error) { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "FetchCheckpoint", arg0, arg1) 56 ret0, _ := ret[0].(*checkpoint.Checkpoint) 57 ret1, _ := ret[1].(error) 58 return ret0, ret1 59 } 60 61 // FetchCheckpoint indicates an expected call of FetchCheckpoint. 62 func (mr *MockIHeimdallClientMockRecorder) FetchCheckpoint(arg0, arg1 interface{}) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchCheckpoint", reflect.TypeOf((*MockIHeimdallClient)(nil).FetchCheckpoint), arg0, arg1) 65 } 66 67 // FetchCheckpointCount mocks base method. 68 func (m *MockIHeimdallClient) FetchCheckpointCount(arg0 context.Context) (int64, error) { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "FetchCheckpointCount", arg0) 71 ret0, _ := ret[0].(int64) 72 ret1, _ := ret[1].(error) 73 return ret0, ret1 74 } 75 76 // FetchCheckpointCount indicates an expected call of FetchCheckpointCount. 77 func (mr *MockIHeimdallClientMockRecorder) FetchCheckpointCount(arg0 interface{}) *gomock.Call { 78 mr.mock.ctrl.T.Helper() 79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchCheckpointCount", reflect.TypeOf((*MockIHeimdallClient)(nil).FetchCheckpointCount), arg0) 80 } 81 82 // Span mocks base method. 83 func (m *MockIHeimdallClient) Span(arg0 context.Context, arg1 uint64) (*span.HeimdallSpan, error) { 84 m.ctrl.T.Helper() 85 ret := m.ctrl.Call(m, "Span", arg0, arg1) 86 ret0, _ := ret[0].(*span.HeimdallSpan) 87 ret1, _ := ret[1].(error) 88 return ret0, ret1 89 } 90 91 // Span indicates an expected call of Span. 92 func (mr *MockIHeimdallClientMockRecorder) Span(arg0, arg1 interface{}) *gomock.Call { 93 mr.mock.ctrl.T.Helper() 94 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Span", reflect.TypeOf((*MockIHeimdallClient)(nil).Span), arg0, arg1) 95 } 96 97 // StateSyncEvents mocks base method. 98 func (m *MockIHeimdallClient) StateSyncEvents(arg0 context.Context, arg1 uint64, arg2 int64) ([]*clerk.EventRecordWithTime, error) { 99 m.ctrl.T.Helper() 100 ret := m.ctrl.Call(m, "StateSyncEvents", arg0, arg1, arg2) 101 ret0, _ := ret[0].([]*clerk.EventRecordWithTime) 102 ret1, _ := ret[1].(error) 103 return ret0, ret1 104 } 105 106 // StateSyncEvents indicates an expected call of StateSyncEvents. 107 func (mr *MockIHeimdallClientMockRecorder) StateSyncEvents(arg0, arg1, arg2 interface{}) *gomock.Call { 108 mr.mock.ctrl.T.Helper() 109 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StateSyncEvents", reflect.TypeOf((*MockIHeimdallClient)(nil).StateSyncEvents), arg0, arg1, arg2) 110 }