You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.5 KiB

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