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.

142 lines
3.2 KiB

  1. // Code generated by mockery v2.1.0. DO NOT EDIT.
  2. package mocks
  3. import (
  4. mock "github.com/stretchr/testify/mock"
  5. abcicli "github.com/tendermint/tendermint/abci/client"
  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. // BeginBlockSync provides a mock function with given fields: _a0
  13. func (_m *AppConnConsensus) BeginBlockSync(_a0 types.RequestBeginBlock) (*types.ResponseBeginBlock, error) {
  14. ret := _m.Called(_a0)
  15. var r0 *types.ResponseBeginBlock
  16. if rf, ok := ret.Get(0).(func(types.RequestBeginBlock) *types.ResponseBeginBlock); ok {
  17. r0 = rf(_a0)
  18. } else {
  19. if ret.Get(0) != nil {
  20. r0 = ret.Get(0).(*types.ResponseBeginBlock)
  21. }
  22. }
  23. var r1 error
  24. if rf, ok := ret.Get(1).(func(types.RequestBeginBlock) error); ok {
  25. r1 = rf(_a0)
  26. } else {
  27. r1 = ret.Error(1)
  28. }
  29. return r0, r1
  30. }
  31. // CommitSync provides a mock function with given fields:
  32. func (_m *AppConnConsensus) CommitSync() (*types.ResponseCommit, error) {
  33. ret := _m.Called()
  34. var r0 *types.ResponseCommit
  35. if rf, ok := ret.Get(0).(func() *types.ResponseCommit); ok {
  36. r0 = rf()
  37. } else {
  38. if ret.Get(0) != nil {
  39. r0 = ret.Get(0).(*types.ResponseCommit)
  40. }
  41. }
  42. var r1 error
  43. if rf, ok := ret.Get(1).(func() error); ok {
  44. r1 = rf()
  45. } else {
  46. r1 = ret.Error(1)
  47. }
  48. return r0, r1
  49. }
  50. // DeliverTxAsync provides a mock function with given fields: _a0
  51. func (_m *AppConnConsensus) DeliverTxAsync(_a0 types.RequestDeliverTx) *abcicli.ReqRes {
  52. ret := _m.Called(_a0)
  53. var r0 *abcicli.ReqRes
  54. if rf, ok := ret.Get(0).(func(types.RequestDeliverTx) *abcicli.ReqRes); ok {
  55. r0 = rf(_a0)
  56. } else {
  57. if ret.Get(0) != nil {
  58. r0 = ret.Get(0).(*abcicli.ReqRes)
  59. }
  60. }
  61. return r0
  62. }
  63. // EndBlockSync provides a mock function with given fields: _a0
  64. func (_m *AppConnConsensus) EndBlockSync(_a0 types.RequestEndBlock) (*types.ResponseEndBlock, error) {
  65. ret := _m.Called(_a0)
  66. var r0 *types.ResponseEndBlock
  67. if rf, ok := ret.Get(0).(func(types.RequestEndBlock) *types.ResponseEndBlock); ok {
  68. r0 = rf(_a0)
  69. } else {
  70. if ret.Get(0) != nil {
  71. r0 = ret.Get(0).(*types.ResponseEndBlock)
  72. }
  73. }
  74. var r1 error
  75. if rf, ok := ret.Get(1).(func(types.RequestEndBlock) error); ok {
  76. r1 = rf(_a0)
  77. } else {
  78. r1 = ret.Error(1)
  79. }
  80. return r0, r1
  81. }
  82. // Error provides a mock function with given fields:
  83. func (_m *AppConnConsensus) Error() error {
  84. ret := _m.Called()
  85. var r0 error
  86. if rf, ok := ret.Get(0).(func() error); ok {
  87. r0 = rf()
  88. } else {
  89. r0 = ret.Error(0)
  90. }
  91. return r0
  92. }
  93. // InitChainSync provides a mock function with given fields: _a0
  94. func (_m *AppConnConsensus) InitChainSync(_a0 types.RequestInitChain) (*types.ResponseInitChain, error) {
  95. ret := _m.Called(_a0)
  96. var r0 *types.ResponseInitChain
  97. if rf, ok := ret.Get(0).(func(types.RequestInitChain) *types.ResponseInitChain); ok {
  98. r0 = rf(_a0)
  99. } else {
  100. if ret.Get(0) != nil {
  101. r0 = ret.Get(0).(*types.ResponseInitChain)
  102. }
  103. }
  104. var r1 error
  105. if rf, ok := ret.Get(1).(func(types.RequestInitChain) error); ok {
  106. r1 = rf(_a0)
  107. } else {
  108. r1 = ret.Error(1)
  109. }
  110. return r0, r1
  111. }
  112. // SetResponseCallback provides a mock function with given fields: _a0
  113. func (_m *AppConnConsensus) SetResponseCallback(_a0 abcicli.Callback) {
  114. _m.Called(_a0)
  115. }