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.

52 lines
1.1 KiB

  1. // Code generated by mockery v2.1.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. // StateStore is an autogenerated mock type for the StateStore type
  9. type StateStore struct {
  10. mock.Mock
  11. }
  12. // LoadState provides a mock function with given fields:
  13. func (_m *StateStore) LoadState() state.State {
  14. ret := _m.Called()
  15. var r0 state.State
  16. if rf, ok := ret.Get(0).(func() state.State); ok {
  17. r0 = rf()
  18. } else {
  19. r0 = ret.Get(0).(state.State)
  20. }
  21. return r0
  22. }
  23. // LoadValidators provides a mock function with given fields: height
  24. func (_m *StateStore) LoadValidators(height int64) (*types.ValidatorSet, error) {
  25. ret := _m.Called(height)
  26. var r0 *types.ValidatorSet
  27. if rf, ok := ret.Get(0).(func(int64) *types.ValidatorSet); ok {
  28. r0 = rf(height)
  29. } else {
  30. if ret.Get(0) != nil {
  31. r0 = ret.Get(0).(*types.ValidatorSet)
  32. }
  33. }
  34. var r1 error
  35. if rf, ok := ret.Get(1).(func(int64) error); ok {
  36. r1 = rf(height)
  37. } else {
  38. r1 = ret.Error(1)
  39. }
  40. return r0, r1
  41. }