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.

244 lines
6.4 KiB

  1. // Code generated by mockery. DO NOT EDIT.
  2. package mocks
  3. import (
  4. context "context"
  5. abciclient "github.com/tendermint/tendermint/abci/client"
  6. mock "github.com/stretchr/testify/mock"
  7. types "github.com/tendermint/tendermint/abci/types"
  8. )
  9. // AppConnConsensus is an autogenerated mock type for the AppConnConsensus type
  10. type AppConnConsensus struct {
  11. mock.Mock
  12. }
  13. // BeginBlock provides a mock function with given fields: _a0, _a1
  14. func (_m *AppConnConsensus) BeginBlock(_a0 context.Context, _a1 types.RequestBeginBlock) (*types.ResponseBeginBlock, error) {
  15. ret := _m.Called(_a0, _a1)
  16. var r0 *types.ResponseBeginBlock
  17. if rf, ok := ret.Get(0).(func(context.Context, types.RequestBeginBlock) *types.ResponseBeginBlock); ok {
  18. r0 = rf(_a0, _a1)
  19. } else {
  20. if ret.Get(0) != nil {
  21. r0 = ret.Get(0).(*types.ResponseBeginBlock)
  22. }
  23. }
  24. var r1 error
  25. if rf, ok := ret.Get(1).(func(context.Context, types.RequestBeginBlock) error); ok {
  26. r1 = rf(_a0, _a1)
  27. } else {
  28. r1 = ret.Error(1)
  29. }
  30. return r0, r1
  31. }
  32. // Commit provides a mock function with given fields: _a0
  33. func (_m *AppConnConsensus) Commit(_a0 context.Context) (*types.ResponseCommit, error) {
  34. ret := _m.Called(_a0)
  35. var r0 *types.ResponseCommit
  36. if rf, ok := ret.Get(0).(func(context.Context) *types.ResponseCommit); ok {
  37. r0 = rf(_a0)
  38. } else {
  39. if ret.Get(0) != nil {
  40. r0 = ret.Get(0).(*types.ResponseCommit)
  41. }
  42. }
  43. var r1 error
  44. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  45. r1 = rf(_a0)
  46. } else {
  47. r1 = ret.Error(1)
  48. }
  49. return r0, r1
  50. }
  51. // DeliverTx provides a mock function with given fields: _a0, _a1
  52. func (_m *AppConnConsensus) DeliverTx(_a0 context.Context, _a1 types.RequestDeliverTx) (*types.ResponseDeliverTx, error) {
  53. ret := _m.Called(_a0, _a1)
  54. var r0 *types.ResponseDeliverTx
  55. if rf, ok := ret.Get(0).(func(context.Context, types.RequestDeliverTx) *types.ResponseDeliverTx); ok {
  56. r0 = rf(_a0, _a1)
  57. } else {
  58. if ret.Get(0) != nil {
  59. r0 = ret.Get(0).(*types.ResponseDeliverTx)
  60. }
  61. }
  62. var r1 error
  63. if rf, ok := ret.Get(1).(func(context.Context, types.RequestDeliverTx) error); ok {
  64. r1 = rf(_a0, _a1)
  65. } else {
  66. r1 = ret.Error(1)
  67. }
  68. return r0, r1
  69. }
  70. // EndBlock provides a mock function with given fields: _a0, _a1
  71. func (_m *AppConnConsensus) EndBlock(_a0 context.Context, _a1 types.RequestEndBlock) (*types.ResponseEndBlock, error) {
  72. ret := _m.Called(_a0, _a1)
  73. var r0 *types.ResponseEndBlock
  74. if rf, ok := ret.Get(0).(func(context.Context, types.RequestEndBlock) *types.ResponseEndBlock); ok {
  75. r0 = rf(_a0, _a1)
  76. } else {
  77. if ret.Get(0) != nil {
  78. r0 = ret.Get(0).(*types.ResponseEndBlock)
  79. }
  80. }
  81. var r1 error
  82. if rf, ok := ret.Get(1).(func(context.Context, types.RequestEndBlock) error); ok {
  83. r1 = rf(_a0, _a1)
  84. } else {
  85. r1 = ret.Error(1)
  86. }
  87. return r0, r1
  88. }
  89. // Error provides a mock function with given fields:
  90. func (_m *AppConnConsensus) Error() error {
  91. ret := _m.Called()
  92. var r0 error
  93. if rf, ok := ret.Get(0).(func() error); ok {
  94. r0 = rf()
  95. } else {
  96. r0 = ret.Error(0)
  97. }
  98. return r0
  99. }
  100. // ExtendVote provides a mock function with given fields: _a0, _a1
  101. func (_m *AppConnConsensus) ExtendVote(_a0 context.Context, _a1 types.RequestExtendVote) (*types.ResponseExtendVote, error) {
  102. ret := _m.Called(_a0, _a1)
  103. var r0 *types.ResponseExtendVote
  104. if rf, ok := ret.Get(0).(func(context.Context, types.RequestExtendVote) *types.ResponseExtendVote); ok {
  105. r0 = rf(_a0, _a1)
  106. } else {
  107. if ret.Get(0) != nil {
  108. r0 = ret.Get(0).(*types.ResponseExtendVote)
  109. }
  110. }
  111. var r1 error
  112. if rf, ok := ret.Get(1).(func(context.Context, types.RequestExtendVote) error); ok {
  113. r1 = rf(_a0, _a1)
  114. } else {
  115. r1 = ret.Error(1)
  116. }
  117. return r0, r1
  118. }
  119. // InitChain provides a mock function with given fields: _a0, _a1
  120. func (_m *AppConnConsensus) InitChain(_a0 context.Context, _a1 types.RequestInitChain) (*types.ResponseInitChain, error) {
  121. ret := _m.Called(_a0, _a1)
  122. var r0 *types.ResponseInitChain
  123. if rf, ok := ret.Get(0).(func(context.Context, types.RequestInitChain) *types.ResponseInitChain); ok {
  124. r0 = rf(_a0, _a1)
  125. } else {
  126. if ret.Get(0) != nil {
  127. r0 = ret.Get(0).(*types.ResponseInitChain)
  128. }
  129. }
  130. var r1 error
  131. if rf, ok := ret.Get(1).(func(context.Context, types.RequestInitChain) error); ok {
  132. r1 = rf(_a0, _a1)
  133. } else {
  134. r1 = ret.Error(1)
  135. }
  136. return r0, r1
  137. }
  138. // PrepareProposal provides a mock function with given fields: _a0, _a1
  139. func (_m *AppConnConsensus) PrepareProposal(_a0 context.Context, _a1 types.RequestPrepareProposal) (*types.ResponsePrepareProposal, error) {
  140. ret := _m.Called(_a0, _a1)
  141. var r0 *types.ResponsePrepareProposal
  142. if rf, ok := ret.Get(0).(func(context.Context, types.RequestPrepareProposal) *types.ResponsePrepareProposal); ok {
  143. r0 = rf(_a0, _a1)
  144. } else {
  145. if ret.Get(0) != nil {
  146. r0 = ret.Get(0).(*types.ResponsePrepareProposal)
  147. }
  148. }
  149. var r1 error
  150. if rf, ok := ret.Get(1).(func(context.Context, types.RequestPrepareProposal) error); ok {
  151. r1 = rf(_a0, _a1)
  152. } else {
  153. r1 = ret.Error(1)
  154. }
  155. return r0, r1
  156. }
  157. // ProcessProposal provides a mock function with given fields: _a0, _a1
  158. func (_m *AppConnConsensus) ProcessProposal(_a0 context.Context, _a1 types.RequestProcessProposal) (*types.ResponseProcessProposal, error) {
  159. ret := _m.Called(_a0, _a1)
  160. var r0 *types.ResponseProcessProposal
  161. if rf, ok := ret.Get(0).(func(context.Context, types.RequestProcessProposal) *types.ResponseProcessProposal); ok {
  162. r0 = rf(_a0, _a1)
  163. } else {
  164. if ret.Get(0) != nil {
  165. r0 = ret.Get(0).(*types.ResponseProcessProposal)
  166. }
  167. }
  168. var r1 error
  169. if rf, ok := ret.Get(1).(func(context.Context, types.RequestProcessProposal) error); ok {
  170. r1 = rf(_a0, _a1)
  171. } else {
  172. r1 = ret.Error(1)
  173. }
  174. return r0, r1
  175. }
  176. // SetResponseCallback provides a mock function with given fields: _a0
  177. func (_m *AppConnConsensus) SetResponseCallback(_a0 abciclient.Callback) {
  178. _m.Called(_a0)
  179. }
  180. // VerifyVoteExtension provides a mock function with given fields: _a0, _a1
  181. func (_m *AppConnConsensus) VerifyVoteExtension(_a0 context.Context, _a1 types.RequestVerifyVoteExtension) (*types.ResponseVerifyVoteExtension, error) {
  182. ret := _m.Called(_a0, _a1)
  183. var r0 *types.ResponseVerifyVoteExtension
  184. if rf, ok := ret.Get(0).(func(context.Context, types.RequestVerifyVoteExtension) *types.ResponseVerifyVoteExtension); ok {
  185. r0 = rf(_a0, _a1)
  186. } else {
  187. if ret.Get(0) != nil {
  188. r0 = ret.Get(0).(*types.ResponseVerifyVoteExtension)
  189. }
  190. }
  191. var r1 error
  192. if rf, ok := ret.Get(1).(func(context.Context, types.RequestVerifyVoteExtension) error); ok {
  193. r1 = rf(_a0, _a1)
  194. } else {
  195. r1 = ret.Error(1)
  196. }
  197. return r0, r1
  198. }