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.

167 lines
3.6 KiB

  1. // Code generated by mockery 2.7.5. DO NOT EDIT.
  2. package mocks
  3. import (
  4. context "context"
  5. mock "github.com/stretchr/testify/mock"
  6. indexer "github.com/tendermint/tendermint/internal/state/indexer"
  7. query "github.com/tendermint/tendermint/internal/pubsub/query"
  8. tenderminttypes "github.com/tendermint/tendermint/types"
  9. types "github.com/tendermint/tendermint/abci/types"
  10. )
  11. // EventSink is an autogenerated mock type for the EventSink type
  12. type EventSink struct {
  13. mock.Mock
  14. }
  15. // GetTxByHash provides a mock function with given fields: _a0
  16. func (_m *EventSink) GetTxByHash(_a0 []byte) (*types.TxResult, error) {
  17. ret := _m.Called(_a0)
  18. var r0 *types.TxResult
  19. if rf, ok := ret.Get(0).(func([]byte) *types.TxResult); ok {
  20. r0 = rf(_a0)
  21. } else {
  22. if ret.Get(0) != nil {
  23. r0 = ret.Get(0).(*types.TxResult)
  24. }
  25. }
  26. var r1 error
  27. if rf, ok := ret.Get(1).(func([]byte) error); ok {
  28. r1 = rf(_a0)
  29. } else {
  30. r1 = ret.Error(1)
  31. }
  32. return r0, r1
  33. }
  34. // HasBlock provides a mock function with given fields: _a0
  35. func (_m *EventSink) HasBlock(_a0 int64) (bool, error) {
  36. ret := _m.Called(_a0)
  37. var r0 bool
  38. if rf, ok := ret.Get(0).(func(int64) bool); ok {
  39. r0 = rf(_a0)
  40. } else {
  41. r0 = ret.Get(0).(bool)
  42. }
  43. var r1 error
  44. if rf, ok := ret.Get(1).(func(int64) error); ok {
  45. r1 = rf(_a0)
  46. } else {
  47. r1 = ret.Error(1)
  48. }
  49. return r0, r1
  50. }
  51. // IndexBlockEvents provides a mock function with given fields: _a0
  52. func (_m *EventSink) IndexBlockEvents(_a0 tenderminttypes.EventDataNewBlockHeader) error {
  53. ret := _m.Called(_a0)
  54. var r0 error
  55. if rf, ok := ret.Get(0).(func(tenderminttypes.EventDataNewBlockHeader) error); ok {
  56. r0 = rf(_a0)
  57. } else {
  58. r0 = ret.Error(0)
  59. }
  60. return r0
  61. }
  62. // IndexTxEvents provides a mock function with given fields: _a0
  63. func (_m *EventSink) IndexTxEvents(_a0 []*types.TxResult) error {
  64. ret := _m.Called(_a0)
  65. var r0 error
  66. if rf, ok := ret.Get(0).(func([]*types.TxResult) error); ok {
  67. r0 = rf(_a0)
  68. } else {
  69. r0 = ret.Error(0)
  70. }
  71. return r0
  72. }
  73. // SearchBlockEvents provides a mock function with given fields: _a0, _a1
  74. func (_m *EventSink) SearchBlockEvents(_a0 context.Context, _a1 *query.Query) ([]int64, error) {
  75. ret := _m.Called(_a0, _a1)
  76. var r0 []int64
  77. if rf, ok := ret.Get(0).(func(context.Context, *query.Query) []int64); ok {
  78. r0 = rf(_a0, _a1)
  79. } else {
  80. if ret.Get(0) != nil {
  81. r0 = ret.Get(0).([]int64)
  82. }
  83. }
  84. var r1 error
  85. if rf, ok := ret.Get(1).(func(context.Context, *query.Query) error); ok {
  86. r1 = rf(_a0, _a1)
  87. } else {
  88. r1 = ret.Error(1)
  89. }
  90. return r0, r1
  91. }
  92. // SearchTxEvents provides a mock function with given fields: _a0, _a1
  93. func (_m *EventSink) SearchTxEvents(_a0 context.Context, _a1 *query.Query) ([]*types.TxResult, error) {
  94. ret := _m.Called(_a0, _a1)
  95. var r0 []*types.TxResult
  96. if rf, ok := ret.Get(0).(func(context.Context, *query.Query) []*types.TxResult); ok {
  97. r0 = rf(_a0, _a1)
  98. } else {
  99. if ret.Get(0) != nil {
  100. r0 = ret.Get(0).([]*types.TxResult)
  101. }
  102. }
  103. var r1 error
  104. if rf, ok := ret.Get(1).(func(context.Context, *query.Query) error); ok {
  105. r1 = rf(_a0, _a1)
  106. } else {
  107. r1 = ret.Error(1)
  108. }
  109. return r0, r1
  110. }
  111. // Stop provides a mock function with given fields:
  112. func (_m *EventSink) Stop() error {
  113. ret := _m.Called()
  114. var r0 error
  115. if rf, ok := ret.Get(0).(func() error); ok {
  116. r0 = rf()
  117. } else {
  118. r0 = ret.Error(0)
  119. }
  120. return r0
  121. }
  122. // Type provides a mock function with given fields:
  123. func (_m *EventSink) Type() indexer.EventSinkType {
  124. ret := _m.Called()
  125. var r0 indexer.EventSinkType
  126. if rf, ok := ret.Get(0).(func() indexer.EventSinkType); ok {
  127. r0 = rf()
  128. } else {
  129. r0 = ret.Get(0).(indexer.EventSinkType)
  130. }
  131. return r0
  132. }