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.

117 lines
2.6 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. // Status provides a mock function with given fields: ctx
  25. func (_m *LightClient) Status(ctx context.Context) *types.LightClientInfo {
  26. ret := _m.Called(ctx)
  27. var r0 *types.LightClientInfo
  28. if rf, ok := ret.Get(0).(func(context.Context) *types.LightClientInfo); ok {
  29. r0 = rf(ctx)
  30. } else {
  31. if ret.Get(0) != nil {
  32. r0 = ret.Get(0).(*types.LightClientInfo)
  33. }
  34. }
  35. return r0
  36. }
  37. // TrustedLightBlock provides a mock function with given fields: height
  38. func (_m *LightClient) TrustedLightBlock(height int64) (*types.LightBlock, error) {
  39. ret := _m.Called(height)
  40. var r0 *types.LightBlock
  41. if rf, ok := ret.Get(0).(func(int64) *types.LightBlock); ok {
  42. r0 = rf(height)
  43. } else {
  44. if ret.Get(0) != nil {
  45. r0 = ret.Get(0).(*types.LightBlock)
  46. }
  47. }
  48. var r1 error
  49. if rf, ok := ret.Get(1).(func(int64) error); ok {
  50. r1 = rf(height)
  51. } else {
  52. r1 = ret.Error(1)
  53. }
  54. return r0, r1
  55. }
  56. // Update provides a mock function with given fields: ctx, now
  57. func (_m *LightClient) Update(ctx context.Context, now time.Time) (*types.LightBlock, error) {
  58. ret := _m.Called(ctx, now)
  59. var r0 *types.LightBlock
  60. if rf, ok := ret.Get(0).(func(context.Context, time.Time) *types.LightBlock); ok {
  61. r0 = rf(ctx, now)
  62. } else {
  63. if ret.Get(0) != nil {
  64. r0 = ret.Get(0).(*types.LightBlock)
  65. }
  66. }
  67. var r1 error
  68. if rf, ok := ret.Get(1).(func(context.Context, time.Time) error); ok {
  69. r1 = rf(ctx, now)
  70. } else {
  71. r1 = ret.Error(1)
  72. }
  73. return r0, r1
  74. }
  75. // VerifyLightBlockAtHeight provides a mock function with given fields: ctx, height, now
  76. func (_m *LightClient) VerifyLightBlockAtHeight(ctx context.Context, height int64, now time.Time) (*types.LightBlock, error) {
  77. ret := _m.Called(ctx, height, now)
  78. var r0 *types.LightBlock
  79. if rf, ok := ret.Get(0).(func(context.Context, int64, time.Time) *types.LightBlock); ok {
  80. r0 = rf(ctx, height, now)
  81. } else {
  82. if ret.Get(0) != nil {
  83. r0 = ret.Get(0).(*types.LightBlock)
  84. }
  85. }
  86. var r1 error
  87. if rf, ok := ret.Get(1).(func(context.Context, int64, time.Time) error); ok {
  88. r1 = rf(ctx, height, now)
  89. } else {
  90. r1 = ret.Error(1)
  91. }
  92. return r0, r1
  93. }