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.

71 lines
1.6 KiB

  1. // Code generated by mockery v2.5.1. 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. // CheckEvidence provides a mock function with given fields: _a0
  24. func (_m *EvidencePool) CheckEvidence(_a0 types.EvidenceList) error {
  25. ret := _m.Called(_a0)
  26. var r0 error
  27. if rf, ok := ret.Get(0).(func(types.EvidenceList) error); ok {
  28. r0 = rf(_a0)
  29. } else {
  30. r0 = ret.Error(0)
  31. }
  32. return r0
  33. }
  34. // PendingEvidence provides a mock function with given fields: maxBytes
  35. func (_m *EvidencePool) PendingEvidence(maxBytes int64) ([]types.Evidence, int64) {
  36. ret := _m.Called(maxBytes)
  37. var r0 []types.Evidence
  38. if rf, ok := ret.Get(0).(func(int64) []types.Evidence); ok {
  39. r0 = rf(maxBytes)
  40. } else {
  41. if ret.Get(0) != nil {
  42. r0 = ret.Get(0).([]types.Evidence)
  43. }
  44. }
  45. var r1 int64
  46. if rf, ok := ret.Get(1).(func(int64) int64); ok {
  47. r1 = rf(maxBytes)
  48. } else {
  49. r1 = ret.Get(1).(int64)
  50. }
  51. return r0, r1
  52. }
  53. // Update provides a mock function with given fields: _a0, _a1
  54. func (_m *EvidencePool) Update(_a0 state.State, _a1 types.EvidenceList) {
  55. _m.Called(_a0, _a1)
  56. }