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.

188 lines
3.9 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/internal/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. // Close provides a mock function with given fields:
  25. func (_m *Store) Close() error {
  26. ret := _m.Called()
  27. var r0 error
  28. if rf, ok := ret.Get(0).(func() error); ok {
  29. r0 = rf()
  30. } else {
  31. r0 = ret.Error(0)
  32. }
  33. return r0
  34. }
  35. // Load provides a mock function with given fields:
  36. func (_m *Store) Load() (state.State, error) {
  37. ret := _m.Called()
  38. var r0 state.State
  39. if rf, ok := ret.Get(0).(func() state.State); ok {
  40. r0 = rf()
  41. } else {
  42. r0 = ret.Get(0).(state.State)
  43. }
  44. var r1 error
  45. if rf, ok := ret.Get(1).(func() error); ok {
  46. r1 = rf()
  47. } else {
  48. r1 = ret.Error(1)
  49. }
  50. return r0, r1
  51. }
  52. // LoadABCIResponses provides a mock function with given fields: _a0
  53. func (_m *Store) LoadABCIResponses(_a0 int64) (*tendermintstate.ABCIResponses, error) {
  54. ret := _m.Called(_a0)
  55. var r0 *tendermintstate.ABCIResponses
  56. if rf, ok := ret.Get(0).(func(int64) *tendermintstate.ABCIResponses); ok {
  57. r0 = rf(_a0)
  58. } else {
  59. if ret.Get(0) != nil {
  60. r0 = ret.Get(0).(*tendermintstate.ABCIResponses)
  61. }
  62. }
  63. var r1 error
  64. if rf, ok := ret.Get(1).(func(int64) error); ok {
  65. r1 = rf(_a0)
  66. } else {
  67. r1 = ret.Error(1)
  68. }
  69. return r0, r1
  70. }
  71. // LoadConsensusParams provides a mock function with given fields: _a0
  72. func (_m *Store) LoadConsensusParams(_a0 int64) (types.ConsensusParams, error) {
  73. ret := _m.Called(_a0)
  74. var r0 types.ConsensusParams
  75. if rf, ok := ret.Get(0).(func(int64) types.ConsensusParams); ok {
  76. r0 = rf(_a0)
  77. } else {
  78. r0 = ret.Get(0).(types.ConsensusParams)
  79. }
  80. var r1 error
  81. if rf, ok := ret.Get(1).(func(int64) error); ok {
  82. r1 = rf(_a0)
  83. } else {
  84. r1 = ret.Error(1)
  85. }
  86. return r0, r1
  87. }
  88. // LoadValidators provides a mock function with given fields: _a0
  89. func (_m *Store) LoadValidators(_a0 int64) (*types.ValidatorSet, error) {
  90. ret := _m.Called(_a0)
  91. var r0 *types.ValidatorSet
  92. if rf, ok := ret.Get(0).(func(int64) *types.ValidatorSet); ok {
  93. r0 = rf(_a0)
  94. } else {
  95. if ret.Get(0) != nil {
  96. r0 = ret.Get(0).(*types.ValidatorSet)
  97. }
  98. }
  99. var r1 error
  100. if rf, ok := ret.Get(1).(func(int64) error); ok {
  101. r1 = rf(_a0)
  102. } else {
  103. r1 = ret.Error(1)
  104. }
  105. return r0, r1
  106. }
  107. // PruneStates provides a mock function with given fields: _a0
  108. func (_m *Store) PruneStates(_a0 int64) error {
  109. ret := _m.Called(_a0)
  110. var r0 error
  111. if rf, ok := ret.Get(0).(func(int64) error); ok {
  112. r0 = rf(_a0)
  113. } else {
  114. r0 = ret.Error(0)
  115. }
  116. return r0
  117. }
  118. // Save provides a mock function with given fields: _a0
  119. func (_m *Store) Save(_a0 state.State) error {
  120. ret := _m.Called(_a0)
  121. var r0 error
  122. if rf, ok := ret.Get(0).(func(state.State) error); ok {
  123. r0 = rf(_a0)
  124. } else {
  125. r0 = ret.Error(0)
  126. }
  127. return r0
  128. }
  129. // SaveABCIResponses provides a mock function with given fields: _a0, _a1
  130. func (_m *Store) SaveABCIResponses(_a0 int64, _a1 *tendermintstate.ABCIResponses) error {
  131. ret := _m.Called(_a0, _a1)
  132. var r0 error
  133. if rf, ok := ret.Get(0).(func(int64, *tendermintstate.ABCIResponses) error); ok {
  134. r0 = rf(_a0, _a1)
  135. } else {
  136. r0 = ret.Error(0)
  137. }
  138. return r0
  139. }
  140. // SaveValidatorSets provides a mock function with given fields: _a0, _a1, _a2
  141. func (_m *Store) SaveValidatorSets(_a0 int64, _a1 int64, _a2 *types.ValidatorSet) error {
  142. ret := _m.Called(_a0, _a1, _a2)
  143. var r0 error
  144. if rf, ok := ret.Get(0).(func(int64, int64, *types.ValidatorSet) error); ok {
  145. r0 = rf(_a0, _a1, _a2)
  146. } else {
  147. r0 = ret.Error(0)
  148. }
  149. return r0
  150. }