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.

205 lines
4.4 KiB

  1. // Code generated by mockery v1.0.0. 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. tenderminttypes "github.com/tendermint/tendermint/types"
  8. types "github.com/tendermint/tendermint/proto/tendermint/types"
  9. )
  10. // Store is an autogenerated mock type for the Store type
  11. type Store struct {
  12. mock.Mock
  13. }
  14. // Bootstrap provides a mock function with given fields: _a0
  15. func (_m *Store) Bootstrap(_a0 state.State) error {
  16. ret := _m.Called(_a0)
  17. var r0 error
  18. if rf, ok := ret.Get(0).(func(state.State) error); ok {
  19. r0 = rf(_a0)
  20. } else {
  21. r0 = ret.Error(0)
  22. }
  23. return r0
  24. }
  25. // Load provides a mock function with given fields:
  26. func (_m *Store) Load() (state.State, error) {
  27. ret := _m.Called()
  28. var r0 state.State
  29. if rf, ok := ret.Get(0).(func() state.State); ok {
  30. r0 = rf()
  31. } else {
  32. r0 = ret.Get(0).(state.State)
  33. }
  34. var r1 error
  35. if rf, ok := ret.Get(1).(func() error); ok {
  36. r1 = rf()
  37. } else {
  38. r1 = ret.Error(1)
  39. }
  40. return r0, r1
  41. }
  42. // LoadABCIResponses provides a mock function with given fields: _a0
  43. func (_m *Store) LoadABCIResponses(_a0 int64) (*tendermintstate.ABCIResponses, error) {
  44. ret := _m.Called(_a0)
  45. var r0 *tendermintstate.ABCIResponses
  46. if rf, ok := ret.Get(0).(func(int64) *tendermintstate.ABCIResponses); ok {
  47. r0 = rf(_a0)
  48. } else {
  49. if ret.Get(0) != nil {
  50. r0 = ret.Get(0).(*tendermintstate.ABCIResponses)
  51. }
  52. }
  53. var r1 error
  54. if rf, ok := ret.Get(1).(func(int64) error); ok {
  55. r1 = rf(_a0)
  56. } else {
  57. r1 = ret.Error(1)
  58. }
  59. return r0, r1
  60. }
  61. // LoadConsensusParams provides a mock function with given fields: _a0
  62. func (_m *Store) LoadConsensusParams(_a0 int64) (types.ConsensusParams, error) {
  63. ret := _m.Called(_a0)
  64. var r0 types.ConsensusParams
  65. if rf, ok := ret.Get(0).(func(int64) types.ConsensusParams); ok {
  66. r0 = rf(_a0)
  67. } else {
  68. r0 = ret.Get(0).(types.ConsensusParams)
  69. }
  70. var r1 error
  71. if rf, ok := ret.Get(1).(func(int64) error); ok {
  72. r1 = rf(_a0)
  73. } else {
  74. r1 = ret.Error(1)
  75. }
  76. return r0, r1
  77. }
  78. // LoadFromDBOrGenesisDoc provides a mock function with given fields: _a0
  79. func (_m *Store) LoadFromDBOrGenesisDoc(_a0 *tenderminttypes.GenesisDoc) (state.State, error) {
  80. ret := _m.Called(_a0)
  81. var r0 state.State
  82. if rf, ok := ret.Get(0).(func(*tenderminttypes.GenesisDoc) state.State); ok {
  83. r0 = rf(_a0)
  84. } else {
  85. r0 = ret.Get(0).(state.State)
  86. }
  87. var r1 error
  88. if rf, ok := ret.Get(1).(func(*tenderminttypes.GenesisDoc) error); ok {
  89. r1 = rf(_a0)
  90. } else {
  91. r1 = ret.Error(1)
  92. }
  93. return r0, r1
  94. }
  95. // LoadFromDBOrGenesisFile provides a mock function with given fields: _a0
  96. func (_m *Store) LoadFromDBOrGenesisFile(_a0 string) (state.State, error) {
  97. ret := _m.Called(_a0)
  98. var r0 state.State
  99. if rf, ok := ret.Get(0).(func(string) state.State); ok {
  100. r0 = rf(_a0)
  101. } else {
  102. r0 = ret.Get(0).(state.State)
  103. }
  104. var r1 error
  105. if rf, ok := ret.Get(1).(func(string) error); ok {
  106. r1 = rf(_a0)
  107. } else {
  108. r1 = ret.Error(1)
  109. }
  110. return r0, r1
  111. }
  112. // LoadValidators provides a mock function with given fields: _a0
  113. func (_m *Store) LoadValidators(_a0 int64) (*tenderminttypes.ValidatorSet, error) {
  114. ret := _m.Called(_a0)
  115. var r0 *tenderminttypes.ValidatorSet
  116. if rf, ok := ret.Get(0).(func(int64) *tenderminttypes.ValidatorSet); ok {
  117. r0 = rf(_a0)
  118. } else {
  119. if ret.Get(0) != nil {
  120. r0 = ret.Get(0).(*tenderminttypes.ValidatorSet)
  121. }
  122. }
  123. var r1 error
  124. if rf, ok := ret.Get(1).(func(int64) error); ok {
  125. r1 = rf(_a0)
  126. } else {
  127. r1 = ret.Error(1)
  128. }
  129. return r0, r1
  130. }
  131. // PruneStates provides a mock function with given fields: _a0
  132. func (_m *Store) PruneStates(_a0 int64) error {
  133. ret := _m.Called(_a0)
  134. var r0 error
  135. if rf, ok := ret.Get(0).(func(int64) error); ok {
  136. r0 = rf(_a0)
  137. } else {
  138. r0 = ret.Error(0)
  139. }
  140. return r0
  141. }
  142. // Save provides a mock function with given fields: _a0
  143. func (_m *Store) Save(_a0 state.State) error {
  144. ret := _m.Called(_a0)
  145. var r0 error
  146. if rf, ok := ret.Get(0).(func(state.State) error); ok {
  147. r0 = rf(_a0)
  148. } else {
  149. r0 = ret.Error(0)
  150. }
  151. return r0
  152. }
  153. // SaveABCIResponses provides a mock function with given fields: _a0, _a1
  154. func (_m *Store) SaveABCIResponses(_a0 int64, _a1 *tendermintstate.ABCIResponses) error {
  155. ret := _m.Called(_a0, _a1)
  156. var r0 error
  157. if rf, ok := ret.Get(0).(func(int64, *tendermintstate.ABCIResponses) error); ok {
  158. r0 = rf(_a0, _a1)
  159. } else {
  160. r0 = ret.Error(0)
  161. }
  162. return r0
  163. }