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 v2.5.1. 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. // AppConnMempool is an autogenerated mock type for the AppConnMempool type
  10. type AppConnMempool struct {
  11. mock.Mock
  12. }
  13. // CheckTxAsync provides a mock function with given fields: _a0, _a1
  14. func (_m *AppConnMempool) CheckTxAsync(_a0 context.Context, _a1 types.RequestCheckTx) (*abcicli.ReqRes, error) {
  15. ret := _m.Called(_a0, _a1)
  16. var r0 *abcicli.ReqRes
  17. if rf, ok := ret.Get(0).(func(context.Context, types.RequestCheckTx) *abcicli.ReqRes); ok {
  18. r0 = rf(_a0, _a1)
  19. } else {
  20. if ret.Get(0) != nil {
  21. r0 = ret.Get(0).(*abcicli.ReqRes)
  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. // CheckTxSync provides a mock function with given fields: _a0, _a1
  33. func (_m *AppConnMempool) CheckTxSync(_a0 context.Context, _a1 types.RequestCheckTx) (*types.ResponseCheckTx, error) {
  34. ret := _m.Called(_a0, _a1)
  35. var r0 *types.ResponseCheckTx
  36. if rf, ok := ret.Get(0).(func(context.Context, types.RequestCheckTx) *types.ResponseCheckTx); ok {
  37. r0 = rf(_a0, _a1)
  38. } else {
  39. if ret.Get(0) != nil {
  40. r0 = ret.Get(0).(*types.ResponseCheckTx)
  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. // FlushAsync provides a mock function with given fields: _a0
  63. func (_m *AppConnMempool) FlushAsync(_a0 context.Context) (*abcicli.ReqRes, error) {
  64. ret := _m.Called(_a0)
  65. var r0 *abcicli.ReqRes
  66. if rf, ok := ret.Get(0).(func(context.Context) *abcicli.ReqRes); ok {
  67. r0 = rf(_a0)
  68. } else {
  69. if ret.Get(0) != nil {
  70. r0 = ret.Get(0).(*abcicli.ReqRes)
  71. }
  72. }
  73. var r1 error
  74. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  75. r1 = rf(_a0)
  76. } else {
  77. r1 = ret.Error(1)
  78. }
  79. return r0, r1
  80. }
  81. // FlushSync provides a mock function with given fields: _a0
  82. func (_m *AppConnMempool) FlushSync(_a0 context.Context) error {
  83. ret := _m.Called(_a0)
  84. var r0 error
  85. if rf, ok := ret.Get(0).(func(context.Context) error); ok {
  86. r0 = rf(_a0)
  87. } else {
  88. r0 = ret.Error(0)
  89. }
  90. return r0
  91. }
  92. // SetResponseCallback provides a mock function with given fields: _a0
  93. func (_m *AppConnMempool) SetResponseCallback(_a0 abcicli.Callback) {
  94. _m.Called(_a0)
  95. }