github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/internal/consensus/mocks/fast_sync_reactor.go (about) 1 // Code generated by mockery 2.7.5. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 mock "github.com/stretchr/testify/mock" 7 8 state "github.com/ari-anchor/sei-tendermint/internal/state" 9 10 time "time" 11 ) 12 13 // BlockSyncReactor is an autogenerated mock type for the BlockSyncReactor type 14 type BlockSyncReactor struct { 15 mock.Mock 16 } 17 18 // GetMaxPeerBlockHeight provides a mock function with given fields: 19 func (_m *BlockSyncReactor) GetMaxPeerBlockHeight() int64 { 20 ret := _m.Called() 21 22 var r0 int64 23 if rf, ok := ret.Get(0).(func() int64); ok { 24 r0 = rf() 25 } else { 26 r0 = ret.Get(0).(int64) 27 } 28 29 return r0 30 } 31 32 // GetRemainingSyncTime provides a mock function with given fields: 33 func (_m *BlockSyncReactor) GetRemainingSyncTime() time.Duration { 34 ret := _m.Called() 35 36 var r0 time.Duration 37 if rf, ok := ret.Get(0).(func() time.Duration); ok { 38 r0 = rf() 39 } else { 40 r0 = ret.Get(0).(time.Duration) 41 } 42 43 return r0 44 } 45 46 // GetTotalSyncedTime provides a mock function with given fields: 47 func (_m *BlockSyncReactor) GetTotalSyncedTime() time.Duration { 48 ret := _m.Called() 49 50 var r0 time.Duration 51 if rf, ok := ret.Get(0).(func() time.Duration); ok { 52 r0 = rf() 53 } else { 54 r0 = ret.Get(0).(time.Duration) 55 } 56 57 return r0 58 } 59 60 // SwitchToBlockSync provides a mock function with given fields: _a0 61 func (_m *BlockSyncReactor) SwitchToBlockSync(_a0 state.State) error { 62 ret := _m.Called(_a0) 63 64 var r0 error 65 if rf, ok := ret.Get(0).(func(state.State) error); ok { 66 r0 = rf(_a0) 67 } else { 68 r0 = ret.Error(0) 69 } 70 71 return r0 72 }