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 v2.3.0. DO NOT EDIT.
  2. package mocks
  3. import (
  4. context "context"
  5. mock "github.com/stretchr/testify/mock"
  6. time "time"
  7. types "github.com/tendermint/tendermint/types"
  8. )
  9. // LightClient is an autogenerated mock type for the LightClient type
  10. type LightClient struct {
  11. mock.Mock
  12. }
  13. // ChainID provides a mock function with given fields:
  14. func (_m *LightClient) ChainID() string {
  15. ret := _m.Called()
  16. var r0 string
  17. if rf, ok := ret.Get(0).(func() string); ok {
  18. r0 = rf()
  19. } else {
  20. r0 = ret.Get(0).(string)
  21. }
  22. return r0
  23. }
  24. // TrustedLightBlock provides a mock function with given fields: height
  25. func (_m *LightClient) TrustedLightBlock(height int64) (*types.LightBlock, error) {
  26. ret := _m.Called(height)
  27. var r0 *types.LightBlock
  28. if rf, ok := ret.Get(0).(func(int64) *types.LightBlock); ok {
  29. r0 = rf(height)
  30. } else {
  31. if ret.Get(0) != nil {
  32. r0 = ret.Get(0).(*types.LightBlock)
  33. }
  34. }
  35. var r1 error
  36. if rf, ok := ret.Get(1).(func(int64) error); ok {
  37. r1 = rf(height)
  38. } else {
  39. r1 = ret.Error(1)
  40. }
  41. return r0, r1
  42. }
  43. // VerifyLightBlockAtHeight provides a mock function with given fields: ctx, height, now
  44. func (_m *LightClient) VerifyLightBlockAtHeight(ctx context.Context, height int64, now time.Time) (*types.LightBlock, error) {
  45. ret := _m.Called(ctx, height, now)
  46. var r0 *types.LightBlock
  47. if rf, ok := ret.Get(0).(func(context.Context, int64, time.Time) *types.LightBlock); ok {
  48. r0 = rf(ctx, height, now)
  49. } else {
  50. if ret.Get(0) != nil {
  51. r0 = ret.Get(0).(*types.LightBlock)
  52. }
  53. }
  54. var r1 error
  55. if rf, ok := ret.Get(1).(func(context.Context, int64, time.Time) error); ok {
  56. r1 = rf(ctx, height, now)
  57. } else {
  58. r1 = ret.Error(1)
  59. }
  60. return r0, r1
  61. }