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.

82 lines
1.6 KiB

  1. // Code generated by mockery v1.0.0. DO NOT EDIT.
  2. package mocks
  3. import (
  4. mock "github.com/stretchr/testify/mock"
  5. state "github.com/tendermint/tendermint/state"
  6. types "github.com/tendermint/tendermint/types"
  7. )
  8. // StateProvider is an autogenerated mock type for the StateProvider type
  9. type StateProvider struct {
  10. mock.Mock
  11. }
  12. // AppHash provides a mock function with given fields: height
  13. func (_m *StateProvider) AppHash(height uint64) ([]byte, error) {
  14. ret := _m.Called(height)
  15. var r0 []byte
  16. if rf, ok := ret.Get(0).(func(uint64) []byte); ok {
  17. r0 = rf(height)
  18. } else {
  19. if ret.Get(0) != nil {
  20. r0 = ret.Get(0).([]byte)
  21. }
  22. }
  23. var r1 error
  24. if rf, ok := ret.Get(1).(func(uint64) error); ok {
  25. r1 = rf(height)
  26. } else {
  27. r1 = ret.Error(1)
  28. }
  29. return r0, r1
  30. }
  31. // Commit provides a mock function with given fields: height
  32. func (_m *StateProvider) Commit(height uint64) (*types.Commit, error) {
  33. ret := _m.Called(height)
  34. var r0 *types.Commit
  35. if rf, ok := ret.Get(0).(func(uint64) *types.Commit); ok {
  36. r0 = rf(height)
  37. } else {
  38. if ret.Get(0) != nil {
  39. r0 = ret.Get(0).(*types.Commit)
  40. }
  41. }
  42. var r1 error
  43. if rf, ok := ret.Get(1).(func(uint64) error); ok {
  44. r1 = rf(height)
  45. } else {
  46. r1 = ret.Error(1)
  47. }
  48. return r0, r1
  49. }
  50. // State provides a mock function with given fields: height
  51. func (_m *StateProvider) State(height uint64) (state.State, error) {
  52. ret := _m.Called(height)
  53. var r0 state.State
  54. if rf, ok := ret.Get(0).(func(uint64) state.State); ok {
  55. r0 = rf(height)
  56. } else {
  57. r0 = ret.Get(0).(state.State)
  58. }
  59. var r1 error
  60. if rf, ok := ret.Get(1).(func(uint64) error); ok {
  61. r1 = rf(height)
  62. } else {
  63. r1 = ret.Error(1)
  64. }
  65. return r0, r1
  66. }