github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/internal/evidence/mocks/block_store.go (about) 1 // Code generated by mockery. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 mock "github.com/stretchr/testify/mock" 7 types "github.com/ari-anchor/sei-tendermint/types" 8 ) 9 10 // BlockStore is an autogenerated mock type for the BlockStore type 11 type BlockStore struct { 12 mock.Mock 13 } 14 15 // Height provides a mock function with given fields: 16 func (_m *BlockStore) Height() int64 { 17 ret := _m.Called() 18 19 var r0 int64 20 if rf, ok := ret.Get(0).(func() int64); ok { 21 r0 = rf() 22 } else { 23 r0 = ret.Get(0).(int64) 24 } 25 26 return r0 27 } 28 29 // LoadBlockCommit provides a mock function with given fields: height 30 func (_m *BlockStore) LoadBlockCommit(height int64) *types.Commit { 31 ret := _m.Called(height) 32 33 var r0 *types.Commit 34 if rf, ok := ret.Get(0).(func(int64) *types.Commit); ok { 35 r0 = rf(height) 36 } else { 37 if ret.Get(0) != nil { 38 r0 = ret.Get(0).(*types.Commit) 39 } 40 } 41 42 return r0 43 } 44 45 // LoadBlockMeta provides a mock function with given fields: height 46 func (_m *BlockStore) LoadBlockMeta(height int64) *types.BlockMeta { 47 ret := _m.Called(height) 48 49 var r0 *types.BlockMeta 50 if rf, ok := ret.Get(0).(func(int64) *types.BlockMeta); ok { 51 r0 = rf(height) 52 } else { 53 if ret.Get(0) != nil { 54 r0 = ret.Get(0).(*types.BlockMeta) 55 } 56 } 57 58 return r0 59 } 60 61 type mockConstructorTestingTNewBlockStore interface { 62 mock.TestingT 63 Cleanup(func()) 64 } 65 66 // NewBlockStore creates a new instance of BlockStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 67 func NewBlockStore(t mockConstructorTestingTNewBlockStore) *BlockStore { 68 mock := &BlockStore{} 69 mock.Mock.Test(t) 70 71 t.Cleanup(func() { mock.AssertExpectations(t) }) 72 73 return mock 74 }