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.

152 lines
3.8 KiB

  1. // Code generated by mockery v0.0.0-dev. DO NOT EDIT.
  2. package mocks
  3. import (
  4. context "context"
  5. abcicli "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. // BeginBlockSync provides a mock function with given fields: _a0, _a1
  14. func (_m *AppConnConsensus) BeginBlockSync(_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. // CommitSync provides a mock function with given fields: _a0
  33. func (_m *AppConnConsensus) CommitSync(_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. // DeliverTxAsync provides a mock function with given fields: _a0, _a1
  52. func (_m *AppConnConsensus) DeliverTxAsync(_a0 context.Context, _a1 types.RequestDeliverTx) (*abcicli.ReqRes, error) {
  53. ret := _m.Called(_a0, _a1)
  54. var r0 *abcicli.ReqRes
  55. if rf, ok := ret.Get(0).(func(context.Context, types.RequestDeliverTx) *abcicli.ReqRes); ok {
  56. r0 = rf(_a0, _a1)
  57. } else {
  58. if ret.Get(0) != nil {
  59. r0 = ret.Get(0).(*abcicli.ReqRes)
  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. // EndBlockSync provides a mock function with given fields: _a0, _a1
  71. func (_m *AppConnConsensus) EndBlockSync(_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. // InitChainSync provides a mock function with given fields: _a0, _a1
  101. func (_m *AppConnConsensus) InitChainSync(_a0 context.Context, _a1 types.RequestInitChain) (*types.ResponseInitChain, error) {
  102. ret := _m.Called(_a0, _a1)
  103. var r0 *types.ResponseInitChain
  104. if rf, ok := ret.Get(0).(func(context.Context, types.RequestInitChain) *types.ResponseInitChain); ok {
  105. r0 = rf(_a0, _a1)
  106. } else {
  107. if ret.Get(0) != nil {
  108. r0 = ret.Get(0).(*types.ResponseInitChain)
  109. }
  110. }
  111. var r1 error
  112. if rf, ok := ret.Get(1).(func(context.Context, types.RequestInitChain) error); ok {
  113. r1 = rf(_a0, _a1)
  114. } else {
  115. r1 = ret.Error(1)
  116. }
  117. return r0, r1
  118. }
  119. // SetResponseCallback provides a mock function with given fields: _a0
  120. func (_m *AppConnConsensus) SetResponseCallback(_a0 abcicli.Callback) {
  121. _m.Called(_a0)
  122. }