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.

191 lines
5.0 KiB

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