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.

59 lines
1.2 KiB

  1. // Code generated by mockery. DO NOT EDIT.
  2. package mocks
  3. import (
  4. mock "github.com/stretchr/testify/mock"
  5. types "github.com/tendermint/tendermint/types"
  6. )
  7. // BlockStore is an autogenerated mock type for the BlockStore type
  8. type BlockStore struct {
  9. mock.Mock
  10. }
  11. // Height provides a mock function with given fields:
  12. func (_m *BlockStore) Height() int64 {
  13. ret := _m.Called()
  14. var r0 int64
  15. if rf, ok := ret.Get(0).(func() int64); ok {
  16. r0 = rf()
  17. } else {
  18. r0 = ret.Get(0).(int64)
  19. }
  20. return r0
  21. }
  22. // LoadBlockCommit provides a mock function with given fields: height
  23. func (_m *BlockStore) LoadBlockCommit(height int64) *types.Commit {
  24. ret := _m.Called(height)
  25. var r0 *types.Commit
  26. if rf, ok := ret.Get(0).(func(int64) *types.Commit); ok {
  27. r0 = rf(height)
  28. } else {
  29. if ret.Get(0) != nil {
  30. r0 = ret.Get(0).(*types.Commit)
  31. }
  32. }
  33. return r0
  34. }
  35. // LoadBlockMeta provides a mock function with given fields: height
  36. func (_m *BlockStore) LoadBlockMeta(height int64) *types.BlockMeta {
  37. ret := _m.Called(height)
  38. var r0 *types.BlockMeta
  39. if rf, ok := ret.Get(0).(func(int64) *types.BlockMeta); ok {
  40. r0 = rf(height)
  41. } else {
  42. if ret.Get(0) != nil {
  43. r0 = ret.Get(0).(*types.BlockMeta)
  44. }
  45. }
  46. return r0
  47. }