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.

73 lines
1.7 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. state "github.com/tendermint/tendermint/internal/state"
  7. types "github.com/tendermint/tendermint/types"
  8. )
  9. // EvidencePool is an autogenerated mock type for the EvidencePool type
  10. type EvidencePool struct {
  11. mock.Mock
  12. }
  13. // AddEvidence provides a mock function with given fields: _a0, _a1
  14. func (_m *EvidencePool) AddEvidence(_a0 context.Context, _a1 types.Evidence) error {
  15. ret := _m.Called(_a0, _a1)
  16. var r0 error
  17. if rf, ok := ret.Get(0).(func(context.Context, types.Evidence) error); ok {
  18. r0 = rf(_a0, _a1)
  19. } else {
  20. r0 = ret.Error(0)
  21. }
  22. return r0
  23. }
  24. // CheckEvidence provides a mock function with given fields: _a0, _a1
  25. func (_m *EvidencePool) CheckEvidence(_a0 context.Context, _a1 types.EvidenceList) error {
  26. ret := _m.Called(_a0, _a1)
  27. var r0 error
  28. if rf, ok := ret.Get(0).(func(context.Context, types.EvidenceList) error); ok {
  29. r0 = rf(_a0, _a1)
  30. } else {
  31. r0 = ret.Error(0)
  32. }
  33. return r0
  34. }
  35. // PendingEvidence provides a mock function with given fields: maxBytes
  36. func (_m *EvidencePool) PendingEvidence(maxBytes int64) ([]types.Evidence, int64) {
  37. ret := _m.Called(maxBytes)
  38. var r0 []types.Evidence
  39. if rf, ok := ret.Get(0).(func(int64) []types.Evidence); ok {
  40. r0 = rf(maxBytes)
  41. } else {
  42. if ret.Get(0) != nil {
  43. r0 = ret.Get(0).([]types.Evidence)
  44. }
  45. }
  46. var r1 int64
  47. if rf, ok := ret.Get(1).(func(int64) int64); ok {
  48. r1 = rf(maxBytes)
  49. } else {
  50. r1 = ret.Get(1).(int64)
  51. }
  52. return r0, r1
  53. }
  54. // Update provides a mock function with given fields: _a0, _a1, _a2
  55. func (_m *EvidencePool) Update(_a0 context.Context, _a1 state.State, _a2 types.EvidenceList) {
  56. _m.Called(_a0, _a1, _a2)
  57. }