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.

120 lines
2.7 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. // AppConnMempool is an autogenerated mock type for the AppConnMempool type
  10. type AppConnMempool struct {
  11. mock.Mock
  12. }
  13. // CheckTx provides a mock function with given fields: _a0, _a1
  14. func (_m *AppConnMempool) CheckTx(_a0 context.Context, _a1 types.RequestCheckTx) (*types.ResponseCheckTx, error) {
  15. ret := _m.Called(_a0, _a1)
  16. var r0 *types.ResponseCheckTx
  17. if rf, ok := ret.Get(0).(func(context.Context, types.RequestCheckTx) *types.ResponseCheckTx); ok {
  18. r0 = rf(_a0, _a1)
  19. } else {
  20. if ret.Get(0) != nil {
  21. r0 = ret.Get(0).(*types.ResponseCheckTx)
  22. }
  23. }
  24. var r1 error
  25. if rf, ok := ret.Get(1).(func(context.Context, types.RequestCheckTx) error); ok {
  26. r1 = rf(_a0, _a1)
  27. } else {
  28. r1 = ret.Error(1)
  29. }
  30. return r0, r1
  31. }
  32. // CheckTxAsync provides a mock function with given fields: _a0, _a1
  33. func (_m *AppConnMempool) CheckTxAsync(_a0 context.Context, _a1 types.RequestCheckTx) (*abciclient.ReqRes, error) {
  34. ret := _m.Called(_a0, _a1)
  35. var r0 *abciclient.ReqRes
  36. if rf, ok := ret.Get(0).(func(context.Context, types.RequestCheckTx) *abciclient.ReqRes); ok {
  37. r0 = rf(_a0, _a1)
  38. } else {
  39. if ret.Get(0) != nil {
  40. r0 = ret.Get(0).(*abciclient.ReqRes)
  41. }
  42. }
  43. var r1 error
  44. if rf, ok := ret.Get(1).(func(context.Context, types.RequestCheckTx) error); ok {
  45. r1 = rf(_a0, _a1)
  46. } else {
  47. r1 = ret.Error(1)
  48. }
  49. return r0, r1
  50. }
  51. // Error provides a mock function with given fields:
  52. func (_m *AppConnMempool) Error() error {
  53. ret := _m.Called()
  54. var r0 error
  55. if rf, ok := ret.Get(0).(func() error); ok {
  56. r0 = rf()
  57. } else {
  58. r0 = ret.Error(0)
  59. }
  60. return r0
  61. }
  62. // Flush provides a mock function with given fields: _a0
  63. func (_m *AppConnMempool) Flush(_a0 context.Context) error {
  64. ret := _m.Called(_a0)
  65. var r0 error
  66. if rf, ok := ret.Get(0).(func(context.Context) error); ok {
  67. r0 = rf(_a0)
  68. } else {
  69. r0 = ret.Error(0)
  70. }
  71. return r0
  72. }
  73. // FlushAsync provides a mock function with given fields: _a0
  74. func (_m *AppConnMempool) FlushAsync(_a0 context.Context) (*abciclient.ReqRes, error) {
  75. ret := _m.Called(_a0)
  76. var r0 *abciclient.ReqRes
  77. if rf, ok := ret.Get(0).(func(context.Context) *abciclient.ReqRes); ok {
  78. r0 = rf(_a0)
  79. } else {
  80. if ret.Get(0) != nil {
  81. r0 = ret.Get(0).(*abciclient.ReqRes)
  82. }
  83. }
  84. var r1 error
  85. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  86. r1 = rf(_a0)
  87. } else {
  88. r1 = ret.Error(1)
  89. }
  90. return r0, r1
  91. }
  92. // SetResponseCallback provides a mock function with given fields: _a0
  93. func (_m *AppConnMempool) SetResponseCallback(_a0 abciclient.Callback) {
  94. _m.Called(_a0)
  95. }