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.

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