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.

203 lines
4.2 KiB

  1. // Code generated by mockery v2.5.1. 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. // LoadFromDBOrGenesisDoc provides a mock function with given fields: _a0
  78. func (_m *Store) LoadFromDBOrGenesisDoc(_a0 *types.GenesisDoc) (state.State, error) {
  79. ret := _m.Called(_a0)
  80. var r0 state.State
  81. if rf, ok := ret.Get(0).(func(*types.GenesisDoc) state.State); ok {
  82. r0 = rf(_a0)
  83. } else {
  84. r0 = ret.Get(0).(state.State)
  85. }
  86. var r1 error
  87. if rf, ok := ret.Get(1).(func(*types.GenesisDoc) error); ok {
  88. r1 = rf(_a0)
  89. } else {
  90. r1 = ret.Error(1)
  91. }
  92. return r0, r1
  93. }
  94. // LoadFromDBOrGenesisFile provides a mock function with given fields: _a0
  95. func (_m *Store) LoadFromDBOrGenesisFile(_a0 string) (state.State, error) {
  96. ret := _m.Called(_a0)
  97. var r0 state.State
  98. if rf, ok := ret.Get(0).(func(string) state.State); ok {
  99. r0 = rf(_a0)
  100. } else {
  101. r0 = ret.Get(0).(state.State)
  102. }
  103. var r1 error
  104. if rf, ok := ret.Get(1).(func(string) error); ok {
  105. r1 = rf(_a0)
  106. } else {
  107. r1 = ret.Error(1)
  108. }
  109. return r0, r1
  110. }
  111. // LoadValidators provides a mock function with given fields: _a0
  112. func (_m *Store) LoadValidators(_a0 int64) (*types.ValidatorSet, error) {
  113. ret := _m.Called(_a0)
  114. var r0 *types.ValidatorSet
  115. if rf, ok := ret.Get(0).(func(int64) *types.ValidatorSet); ok {
  116. r0 = rf(_a0)
  117. } else {
  118. if ret.Get(0) != nil {
  119. r0 = ret.Get(0).(*types.ValidatorSet)
  120. }
  121. }
  122. var r1 error
  123. if rf, ok := ret.Get(1).(func(int64) error); ok {
  124. r1 = rf(_a0)
  125. } else {
  126. r1 = ret.Error(1)
  127. }
  128. return r0, r1
  129. }
  130. // PruneStates provides a mock function with given fields: _a0
  131. func (_m *Store) PruneStates(_a0 int64) error {
  132. ret := _m.Called(_a0)
  133. var r0 error
  134. if rf, ok := ret.Get(0).(func(int64) error); ok {
  135. r0 = rf(_a0)
  136. } else {
  137. r0 = ret.Error(0)
  138. }
  139. return r0
  140. }
  141. // Save provides a mock function with given fields: _a0
  142. func (_m *Store) Save(_a0 state.State) error {
  143. ret := _m.Called(_a0)
  144. var r0 error
  145. if rf, ok := ret.Get(0).(func(state.State) error); ok {
  146. r0 = rf(_a0)
  147. } else {
  148. r0 = ret.Error(0)
  149. }
  150. return r0
  151. }
  152. // SaveABCIResponses provides a mock function with given fields: _a0, _a1
  153. func (_m *Store) SaveABCIResponses(_a0 int64, _a1 *tendermintstate.ABCIResponses) error {
  154. ret := _m.Called(_a0, _a1)
  155. var r0 error
  156. if rf, ok := ret.Get(0).(func(int64, *tendermintstate.ABCIResponses) error); ok {
  157. r0 = rf(_a0, _a1)
  158. } else {
  159. r0 = ret.Error(0)
  160. }
  161. return r0
  162. }