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.

67 lines
1.4 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. types "github.com/tendermint/tendermint/types"
  7. )
  8. // Provider is an autogenerated mock type for the Provider type
  9. type Provider struct {
  10. mock.Mock
  11. }
  12. // ID provides a mock function with given fields:
  13. func (_m *Provider) ID() string {
  14. ret := _m.Called()
  15. var r0 string
  16. if rf, ok := ret.Get(0).(func() string); ok {
  17. r0 = rf()
  18. } else {
  19. r0 = ret.Get(0).(string)
  20. }
  21. return r0
  22. }
  23. // LightBlock provides a mock function with given fields: ctx, height
  24. func (_m *Provider) LightBlock(ctx context.Context, height int64) (*types.LightBlock, error) {
  25. ret := _m.Called(ctx, height)
  26. var r0 *types.LightBlock
  27. if rf, ok := ret.Get(0).(func(context.Context, int64) *types.LightBlock); ok {
  28. r0 = rf(ctx, height)
  29. } else {
  30. if ret.Get(0) != nil {
  31. r0 = ret.Get(0).(*types.LightBlock)
  32. }
  33. }
  34. var r1 error
  35. if rf, ok := ret.Get(1).(func(context.Context, int64) error); ok {
  36. r1 = rf(ctx, height)
  37. } else {
  38. r1 = ret.Error(1)
  39. }
  40. return r0, r1
  41. }
  42. // ReportEvidence provides a mock function with given fields: _a0, _a1
  43. func (_m *Provider) ReportEvidence(_a0 context.Context, _a1 types.Evidence) error {
  44. ret := _m.Called(_a0, _a1)
  45. var r0 error
  46. if rf, ok := ret.Get(0).(func(context.Context, types.Evidence) error); ok {
  47. r0 = rf(_a0, _a1)
  48. } else {
  49. r0 = ret.Error(0)
  50. }
  51. return r0
  52. }