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.

198 lines
5.2 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. // Commit provides a mock function with given fields: _a0
  14. func (_m *AppConnConsensus) Commit(_a0 context.Context) (*types.ResponseCommit, error) {
  15. ret := _m.Called(_a0)
  16. var r0 *types.ResponseCommit
  17. if rf, ok := ret.Get(0).(func(context.Context) *types.ResponseCommit); ok {
  18. r0 = rf(_a0)
  19. } else {
  20. if ret.Get(0) != nil {
  21. r0 = ret.Get(0).(*types.ResponseCommit)
  22. }
  23. }
  24. var r1 error
  25. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  26. r1 = rf(_a0)
  27. } else {
  28. r1 = ret.Error(1)
  29. }
  30. return r0, r1
  31. }
  32. // Error provides a mock function with given fields:
  33. func (_m *AppConnConsensus) Error() error {
  34. ret := _m.Called()
  35. var r0 error
  36. if rf, ok := ret.Get(0).(func() error); ok {
  37. r0 = rf()
  38. } else {
  39. r0 = ret.Error(0)
  40. }
  41. return r0
  42. }
  43. // ExtendVote provides a mock function with given fields: _a0, _a1
  44. func (_m *AppConnConsensus) ExtendVote(_a0 context.Context, _a1 types.RequestExtendVote) (*types.ResponseExtendVote, error) {
  45. ret := _m.Called(_a0, _a1)
  46. var r0 *types.ResponseExtendVote
  47. if rf, ok := ret.Get(0).(func(context.Context, types.RequestExtendVote) *types.ResponseExtendVote); ok {
  48. r0 = rf(_a0, _a1)
  49. } else {
  50. if ret.Get(0) != nil {
  51. r0 = ret.Get(0).(*types.ResponseExtendVote)
  52. }
  53. }
  54. var r1 error
  55. if rf, ok := ret.Get(1).(func(context.Context, types.RequestExtendVote) error); ok {
  56. r1 = rf(_a0, _a1)
  57. } else {
  58. r1 = ret.Error(1)
  59. }
  60. return r0, r1
  61. }
  62. // FinalizeBlock provides a mock function with given fields: _a0, _a1
  63. func (_m *AppConnConsensus) FinalizeBlock(_a0 context.Context, _a1 types.RequestFinalizeBlock) (*types.ResponseFinalizeBlock, error) {
  64. ret := _m.Called(_a0, _a1)
  65. var r0 *types.ResponseFinalizeBlock
  66. if rf, ok := ret.Get(0).(func(context.Context, types.RequestFinalizeBlock) *types.ResponseFinalizeBlock); ok {
  67. r0 = rf(_a0, _a1)
  68. } else {
  69. if ret.Get(0) != nil {
  70. r0 = ret.Get(0).(*types.ResponseFinalizeBlock)
  71. }
  72. }
  73. var r1 error
  74. if rf, ok := ret.Get(1).(func(context.Context, types.RequestFinalizeBlock) error); ok {
  75. r1 = rf(_a0, _a1)
  76. } else {
  77. r1 = ret.Error(1)
  78. }
  79. return r0, r1
  80. }
  81. // InitChain provides a mock function with given fields: _a0, _a1
  82. func (_m *AppConnConsensus) InitChain(_a0 context.Context, _a1 types.RequestInitChain) (*types.ResponseInitChain, error) {
  83. ret := _m.Called(_a0, _a1)
  84. var r0 *types.ResponseInitChain
  85. if rf, ok := ret.Get(0).(func(context.Context, types.RequestInitChain) *types.ResponseInitChain); ok {
  86. r0 = rf(_a0, _a1)
  87. } else {
  88. if ret.Get(0) != nil {
  89. r0 = ret.Get(0).(*types.ResponseInitChain)
  90. }
  91. }
  92. var r1 error
  93. if rf, ok := ret.Get(1).(func(context.Context, types.RequestInitChain) error); ok {
  94. r1 = rf(_a0, _a1)
  95. } else {
  96. r1 = ret.Error(1)
  97. }
  98. return r0, r1
  99. }
  100. // PrepareProposal provides a mock function with given fields: _a0, _a1
  101. func (_m *AppConnConsensus) PrepareProposal(_a0 context.Context, _a1 types.RequestPrepareProposal) (*types.ResponsePrepareProposal, error) {
  102. ret := _m.Called(_a0, _a1)
  103. var r0 *types.ResponsePrepareProposal
  104. if rf, ok := ret.Get(0).(func(context.Context, types.RequestPrepareProposal) *types.ResponsePrepareProposal); ok {
  105. r0 = rf(_a0, _a1)
  106. } else {
  107. if ret.Get(0) != nil {
  108. r0 = ret.Get(0).(*types.ResponsePrepareProposal)
  109. }
  110. }
  111. var r1 error
  112. if rf, ok := ret.Get(1).(func(context.Context, types.RequestPrepareProposal) error); ok {
  113. r1 = rf(_a0, _a1)
  114. } else {
  115. r1 = ret.Error(1)
  116. }
  117. return r0, r1
  118. }
  119. // ProcessProposal provides a mock function with given fields: _a0, _a1
  120. func (_m *AppConnConsensus) ProcessProposal(_a0 context.Context, _a1 types.RequestProcessProposal) (*types.ResponseProcessProposal, error) {
  121. ret := _m.Called(_a0, _a1)
  122. var r0 *types.ResponseProcessProposal
  123. if rf, ok := ret.Get(0).(func(context.Context, types.RequestProcessProposal) *types.ResponseProcessProposal); ok {
  124. r0 = rf(_a0, _a1)
  125. } else {
  126. if ret.Get(0) != nil {
  127. r0 = ret.Get(0).(*types.ResponseProcessProposal)
  128. }
  129. }
  130. var r1 error
  131. if rf, ok := ret.Get(1).(func(context.Context, types.RequestProcessProposal) error); ok {
  132. r1 = rf(_a0, _a1)
  133. } else {
  134. r1 = ret.Error(1)
  135. }
  136. return r0, r1
  137. }
  138. // SetResponseCallback provides a mock function with given fields: _a0
  139. func (_m *AppConnConsensus) SetResponseCallback(_a0 abciclient.Callback) {
  140. _m.Called(_a0)
  141. }
  142. // VerifyVoteExtension provides a mock function with given fields: _a0, _a1
  143. func (_m *AppConnConsensus) VerifyVoteExtension(_a0 context.Context, _a1 types.RequestVerifyVoteExtension) (*types.ResponseVerifyVoteExtension, error) {
  144. ret := _m.Called(_a0, _a1)
  145. var r0 *types.ResponseVerifyVoteExtension
  146. if rf, ok := ret.Get(0).(func(context.Context, types.RequestVerifyVoteExtension) *types.ResponseVerifyVoteExtension); ok {
  147. r0 = rf(_a0, _a1)
  148. } else {
  149. if ret.Get(0) != nil {
  150. r0 = ret.Get(0).(*types.ResponseVerifyVoteExtension)
  151. }
  152. }
  153. var r1 error
  154. if rf, ok := ret.Get(1).(func(context.Context, types.RequestVerifyVoteExtension) error); ok {
  155. r1 = rf(_a0, _a1)
  156. } else {
  157. r1 = ret.Error(1)
  158. }
  159. return r0, r1
  160. }