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.

101 lines
2.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. 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. // Update provides a mock function with given fields: ctx, now
  44. func (_m *LightClient) Update(ctx context.Context, now time.Time) (*types.LightBlock, error) {
  45. ret := _m.Called(ctx, now)
  46. var r0 *types.LightBlock
  47. if rf, ok := ret.Get(0).(func(context.Context, time.Time) *types.LightBlock); ok {
  48. r0 = rf(ctx, 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, time.Time) error); ok {
  56. r1 = rf(ctx, now)
  57. } else {
  58. r1 = ret.Error(1)
  59. }
  60. return r0, r1
  61. }
  62. // VerifyLightBlockAtHeight provides a mock function with given fields: ctx, height, now
  63. func (_m *LightClient) VerifyLightBlockAtHeight(ctx context.Context, height int64, now time.Time) (*types.LightBlock, error) {
  64. ret := _m.Called(ctx, height, now)
  65. var r0 *types.LightBlock
  66. if rf, ok := ret.Get(0).(func(context.Context, int64, time.Time) *types.LightBlock); ok {
  67. r0 = rf(ctx, height, now)
  68. } else {
  69. if ret.Get(0) != nil {
  70. r0 = ret.Get(0).(*types.LightBlock)
  71. }
  72. }
  73. var r1 error
  74. if rf, ok := ret.Get(1).(func(context.Context, int64, time.Time) error); ok {
  75. r1 = rf(ctx, height, now)
  76. } else {
  77. r1 = ret.Error(1)
  78. }
  79. return r0, r1
  80. }