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.

53 lines
1.2 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. // LightBlock provides a mock function with given fields: ctx, height
  13. func (_m *Provider) LightBlock(ctx context.Context, height int64) (*types.LightBlock, error) {
  14. ret := _m.Called(ctx, height)
  15. var r0 *types.LightBlock
  16. if rf, ok := ret.Get(0).(func(context.Context, int64) *types.LightBlock); ok {
  17. r0 = rf(ctx, height)
  18. } else {
  19. if ret.Get(0) != nil {
  20. r0 = ret.Get(0).(*types.LightBlock)
  21. }
  22. }
  23. var r1 error
  24. if rf, ok := ret.Get(1).(func(context.Context, int64) error); ok {
  25. r1 = rf(ctx, height)
  26. } else {
  27. r1 = ret.Error(1)
  28. }
  29. return r0, r1
  30. }
  31. // ReportEvidence provides a mock function with given fields: _a0, _a1
  32. func (_m *Provider) ReportEvidence(_a0 context.Context, _a1 types.Evidence) error {
  33. ret := _m.Called(_a0, _a1)
  34. var r0 error
  35. if rf, ok := ret.Get(0).(func(context.Context, types.Evidence) error); ok {
  36. r0 = rf(_a0, _a1)
  37. } else {
  38. r0 = ret.Error(0)
  39. }
  40. return r0
  41. }