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.

67 lines
1.4 KiB

  1. // Code generated by mockery. DO NOT EDIT.
  2. package mocks
  3. import (
  4. context "context"
  5. mock "github.com/stretchr/testify/mock"
  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. // CheckTx provides a mock function with given fields: _a0, _a1
  13. func (_m *AppConnMempool) CheckTx(_a0 context.Context, _a1 types.RequestCheckTx) (*types.ResponseCheckTx, error) {
  14. ret := _m.Called(_a0, _a1)
  15. var r0 *types.ResponseCheckTx
  16. if rf, ok := ret.Get(0).(func(context.Context, types.RequestCheckTx) *types.ResponseCheckTx); ok {
  17. r0 = rf(_a0, _a1)
  18. } else {
  19. if ret.Get(0) != nil {
  20. r0 = ret.Get(0).(*types.ResponseCheckTx)
  21. }
  22. }
  23. var r1 error
  24. if rf, ok := ret.Get(1).(func(context.Context, types.RequestCheckTx) error); ok {
  25. r1 = rf(_a0, _a1)
  26. } else {
  27. r1 = ret.Error(1)
  28. }
  29. return r0, r1
  30. }
  31. // Error provides a mock function with given fields:
  32. func (_m *AppConnMempool) Error() error {
  33. ret := _m.Called()
  34. var r0 error
  35. if rf, ok := ret.Get(0).(func() error); ok {
  36. r0 = rf()
  37. } else {
  38. r0 = ret.Error(0)
  39. }
  40. return r0
  41. }
  42. // Flush provides a mock function with given fields: _a0
  43. func (_m *AppConnMempool) Flush(_a0 context.Context) error {
  44. ret := _m.Called(_a0)
  45. var r0 error
  46. if rf, ok := ret.Get(0).(func(context.Context) error); ok {
  47. r0 = rf(_a0)
  48. } else {
  49. r0 = ret.Error(0)
  50. }
  51. return r0
  52. }