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.

78 lines
1.7 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. // IsCommitted provides a mock function with given fields: _a0
  24. func (_m *EvidencePool) IsCommitted(_a0 types.Evidence) bool {
  25. ret := _m.Called(_a0)
  26. var r0 bool
  27. if rf, ok := ret.Get(0).(func(types.Evidence) bool); ok {
  28. r0 = rf(_a0)
  29. } else {
  30. r0 = ret.Get(0).(bool)
  31. }
  32. return r0
  33. }
  34. // IsPending provides a mock function with given fields: _a0
  35. func (_m *EvidencePool) IsPending(_a0 types.Evidence) bool {
  36. ret := _m.Called(_a0)
  37. var r0 bool
  38. if rf, ok := ret.Get(0).(func(types.Evidence) bool); ok {
  39. r0 = rf(_a0)
  40. } else {
  41. r0 = ret.Get(0).(bool)
  42. }
  43. return r0
  44. }
  45. // PendingEvidence provides a mock function with given fields: _a0
  46. func (_m *EvidencePool) PendingEvidence(_a0 uint32) []types.Evidence {
  47. ret := _m.Called(_a0)
  48. var r0 []types.Evidence
  49. if rf, ok := ret.Get(0).(func(uint32) []types.Evidence); ok {
  50. r0 = rf(_a0)
  51. } else {
  52. if ret.Get(0) != nil {
  53. r0 = ret.Get(0).([]types.Evidence)
  54. }
  55. }
  56. return r0
  57. }
  58. // Update provides a mock function with given fields: _a0, _a1
  59. func (_m *EvidencePool) Update(_a0 *types.Block, _a1 state.State) {
  60. _m.Called(_a0, _a1)
  61. }