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.

94 lines
2.0 KiB

  1. // Code generated by mockery v1.0.0. DO NOT EDIT.
  2. package mocks
  3. import (
  4. mock "github.com/stretchr/testify/mock"
  5. state "github.com/tendermint/tendermint/state"
  6. types "github.com/tendermint/tendermint/types"
  7. )
  8. // EvidencePool is an autogenerated mock type for the EvidencePool type
  9. type EvidencePool struct {
  10. mock.Mock
  11. }
  12. // AddEvidence provides a mock function with given fields: _a0
  13. func (_m *EvidencePool) AddEvidence(_a0 types.Evidence) error {
  14. ret := _m.Called(_a0)
  15. var r0 error
  16. if rf, ok := ret.Get(0).(func(types.Evidence) error); ok {
  17. r0 = rf(_a0)
  18. } else {
  19. r0 = ret.Error(0)
  20. }
  21. return r0
  22. }
  23. // Header provides a mock function with given fields: _a0
  24. func (_m *EvidencePool) Header(_a0 int64) *types.Header {
  25. ret := _m.Called(_a0)
  26. var r0 *types.Header
  27. if rf, ok := ret.Get(0).(func(int64) *types.Header); ok {
  28. r0 = rf(_a0)
  29. } else {
  30. if ret.Get(0) != nil {
  31. r0 = ret.Get(0).(*types.Header)
  32. }
  33. }
  34. return r0
  35. }
  36. // IsCommitted provides a mock function with given fields: _a0
  37. func (_m *EvidencePool) IsCommitted(_a0 types.Evidence) bool {
  38. ret := _m.Called(_a0)
  39. var r0 bool
  40. if rf, ok := ret.Get(0).(func(types.Evidence) bool); ok {
  41. r0 = rf(_a0)
  42. } else {
  43. r0 = ret.Get(0).(bool)
  44. }
  45. return r0
  46. }
  47. // IsPending provides a mock function with given fields: _a0
  48. func (_m *EvidencePool) IsPending(_a0 types.Evidence) bool {
  49. ret := _m.Called(_a0)
  50. var r0 bool
  51. if rf, ok := ret.Get(0).(func(types.Evidence) bool); ok {
  52. r0 = rf(_a0)
  53. } else {
  54. r0 = ret.Get(0).(bool)
  55. }
  56. return r0
  57. }
  58. // PendingEvidence provides a mock function with given fields: _a0
  59. func (_m *EvidencePool) PendingEvidence(_a0 uint32) []types.Evidence {
  60. ret := _m.Called(_a0)
  61. var r0 []types.Evidence
  62. if rf, ok := ret.Get(0).(func(uint32) []types.Evidence); ok {
  63. r0 = rf(_a0)
  64. } else {
  65. if ret.Get(0) != nil {
  66. r0 = ret.Get(0).([]types.Evidence)
  67. }
  68. }
  69. return r0
  70. }
  71. // Update provides a mock function with given fields: _a0, _a1
  72. func (_m *EvidencePool) Update(_a0 *types.Block, _a1 state.State) {
  73. _m.Called(_a0, _a1)
  74. }