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.

175 lines
3.7 KiB

  1. // Code generated by mockery. DO NOT EDIT.
  2. package mocks
  3. import (
  4. mock "github.com/stretchr/testify/mock"
  5. state "github.com/tendermint/tendermint/state"
  6. tendermintstate "github.com/tendermint/tendermint/proto/tendermint/state"
  7. types "github.com/tendermint/tendermint/types"
  8. )
  9. // Store is an autogenerated mock type for the Store type
  10. type Store struct {
  11. mock.Mock
  12. }
  13. // Bootstrap provides a mock function with given fields: _a0
  14. func (_m *Store) Bootstrap(_a0 state.State) error {
  15. ret := _m.Called(_a0)
  16. var r0 error
  17. if rf, ok := ret.Get(0).(func(state.State) error); ok {
  18. r0 = rf(_a0)
  19. } else {
  20. r0 = ret.Error(0)
  21. }
  22. return r0
  23. }
  24. // Load provides a mock function with given fields:
  25. func (_m *Store) Load() (state.State, error) {
  26. ret := _m.Called()
  27. var r0 state.State
  28. if rf, ok := ret.Get(0).(func() state.State); ok {
  29. r0 = rf()
  30. } else {
  31. r0 = ret.Get(0).(state.State)
  32. }
  33. var r1 error
  34. if rf, ok := ret.Get(1).(func() error); ok {
  35. r1 = rf()
  36. } else {
  37. r1 = ret.Error(1)
  38. }
  39. return r0, r1
  40. }
  41. // LoadABCIResponses provides a mock function with given fields: _a0
  42. func (_m *Store) LoadABCIResponses(_a0 int64) (*tendermintstate.ABCIResponses, error) {
  43. ret := _m.Called(_a0)
  44. var r0 *tendermintstate.ABCIResponses
  45. if rf, ok := ret.Get(0).(func(int64) *tendermintstate.ABCIResponses); ok {
  46. r0 = rf(_a0)
  47. } else {
  48. if ret.Get(0) != nil {
  49. r0 = ret.Get(0).(*tendermintstate.ABCIResponses)
  50. }
  51. }
  52. var r1 error
  53. if rf, ok := ret.Get(1).(func(int64) error); ok {
  54. r1 = rf(_a0)
  55. } else {
  56. r1 = ret.Error(1)
  57. }
  58. return r0, r1
  59. }
  60. // LoadConsensusParams provides a mock function with given fields: _a0
  61. func (_m *Store) LoadConsensusParams(_a0 int64) (types.ConsensusParams, error) {
  62. ret := _m.Called(_a0)
  63. var r0 types.ConsensusParams
  64. if rf, ok := ret.Get(0).(func(int64) types.ConsensusParams); ok {
  65. r0 = rf(_a0)
  66. } else {
  67. r0 = ret.Get(0).(types.ConsensusParams)
  68. }
  69. var r1 error
  70. if rf, ok := ret.Get(1).(func(int64) error); ok {
  71. r1 = rf(_a0)
  72. } else {
  73. r1 = ret.Error(1)
  74. }
  75. return r0, r1
  76. }
  77. // LoadValidators provides a mock function with given fields: _a0
  78. func (_m *Store) LoadValidators(_a0 int64) (*types.ValidatorSet, error) {
  79. ret := _m.Called(_a0)
  80. var r0 *types.ValidatorSet
  81. if rf, ok := ret.Get(0).(func(int64) *types.ValidatorSet); ok {
  82. r0 = rf(_a0)
  83. } else {
  84. if ret.Get(0) != nil {
  85. r0 = ret.Get(0).(*types.ValidatorSet)
  86. }
  87. }
  88. var r1 error
  89. if rf, ok := ret.Get(1).(func(int64) error); ok {
  90. r1 = rf(_a0)
  91. } else {
  92. r1 = ret.Error(1)
  93. }
  94. return r0, r1
  95. }
  96. // PruneStates provides a mock function with given fields: _a0
  97. func (_m *Store) PruneStates(_a0 int64) error {
  98. ret := _m.Called(_a0)
  99. var r0 error
  100. if rf, ok := ret.Get(0).(func(int64) error); ok {
  101. r0 = rf(_a0)
  102. } else {
  103. r0 = ret.Error(0)
  104. }
  105. return r0
  106. }
  107. // Save provides a mock function with given fields: _a0
  108. func (_m *Store) Save(_a0 state.State) error {
  109. ret := _m.Called(_a0)
  110. var r0 error
  111. if rf, ok := ret.Get(0).(func(state.State) error); ok {
  112. r0 = rf(_a0)
  113. } else {
  114. r0 = ret.Error(0)
  115. }
  116. return r0
  117. }
  118. // SaveABCIResponses provides a mock function with given fields: _a0, _a1
  119. func (_m *Store) SaveABCIResponses(_a0 int64, _a1 *tendermintstate.ABCIResponses) error {
  120. ret := _m.Called(_a0, _a1)
  121. var r0 error
  122. if rf, ok := ret.Get(0).(func(int64, *tendermintstate.ABCIResponses) error); ok {
  123. r0 = rf(_a0, _a1)
  124. } else {
  125. r0 = ret.Error(0)
  126. }
  127. return r0
  128. }
  129. // SaveValidatorSets provides a mock function with given fields: _a0, _a1, _a2
  130. func (_m *Store) SaveValidatorSets(_a0 int64, _a1 int64, _a2 *types.ValidatorSet) error {
  131. ret := _m.Called(_a0, _a1, _a2)
  132. var r0 error
  133. if rf, ok := ret.Get(0).(func(int64, int64, *types.ValidatorSet) error); ok {
  134. r0 = rf(_a0, _a1, _a2)
  135. } else {
  136. r0 = ret.Error(0)
  137. }
  138. return r0
  139. }