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.

84 lines
1.9 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. state "github.com/tendermint/tendermint/internal/state"
  7. types "github.com/tendermint/tendermint/types"
  8. )
  9. // StateProvider is an autogenerated mock type for the StateProvider type
  10. type StateProvider struct {
  11. mock.Mock
  12. }
  13. // AppHash provides a mock function with given fields: ctx, height
  14. func (_m *StateProvider) AppHash(ctx context.Context, height uint64) ([]byte, error) {
  15. ret := _m.Called(ctx, height)
  16. var r0 []byte
  17. if rf, ok := ret.Get(0).(func(context.Context, uint64) []byte); ok {
  18. r0 = rf(ctx, height)
  19. } else {
  20. if ret.Get(0) != nil {
  21. r0 = ret.Get(0).([]byte)
  22. }
  23. }
  24. var r1 error
  25. if rf, ok := ret.Get(1).(func(context.Context, uint64) error); ok {
  26. r1 = rf(ctx, height)
  27. } else {
  28. r1 = ret.Error(1)
  29. }
  30. return r0, r1
  31. }
  32. // Commit provides a mock function with given fields: ctx, height
  33. func (_m *StateProvider) Commit(ctx context.Context, height uint64) (*types.Commit, error) {
  34. ret := _m.Called(ctx, height)
  35. var r0 *types.Commit
  36. if rf, ok := ret.Get(0).(func(context.Context, uint64) *types.Commit); ok {
  37. r0 = rf(ctx, height)
  38. } else {
  39. if ret.Get(0) != nil {
  40. r0 = ret.Get(0).(*types.Commit)
  41. }
  42. }
  43. var r1 error
  44. if rf, ok := ret.Get(1).(func(context.Context, uint64) error); ok {
  45. r1 = rf(ctx, height)
  46. } else {
  47. r1 = ret.Error(1)
  48. }
  49. return r0, r1
  50. }
  51. // State provides a mock function with given fields: ctx, height
  52. func (_m *StateProvider) State(ctx context.Context, height uint64) (state.State, error) {
  53. ret := _m.Called(ctx, height)
  54. var r0 state.State
  55. if rf, ok := ret.Get(0).(func(context.Context, uint64) state.State); ok {
  56. r0 = rf(ctx, height)
  57. } else {
  58. r0 = ret.Get(0).(state.State)
  59. }
  60. var r1 error
  61. if rf, ok := ret.Get(1).(func(context.Context, uint64) error); ok {
  62. r1 = rf(ctx, height)
  63. } else {
  64. r1 = ret.Error(1)
  65. }
  66. return r0, r1
  67. }