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.

64 lines
1.4 KiB

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