Some checks are pending
docker-build-cometbft / vars (push) Waiting to run
docker-build-cometbft / build-images (amd64, ubuntu-24.04) (push) Blocked by required conditions
docker-build-cometbft / build-images (arm64, ubuntu-24.04-arm) (push) Blocked by required conditions
docker-build-cometbft / merge-images (push) Blocked by required conditions
docker-build-e2e-node / vars (push) Waiting to run
docker-build-e2e-node / build-images (amd64, ubuntu-24.04) (push) Blocked by required conditions
docker-build-e2e-node / build-images (arm64, ubuntu-24.04-arm) (push) Blocked by required conditions
docker-build-e2e-node / merge-images (push) Blocked by required conditions
85 lines
1.8 KiB
Go
85 lines
1.8 KiB
Go
// Code generated by mockery v2.53.0. DO NOT EDIT.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
types "github.com/cometbft/cometbft/types"
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// BlockStore is an autogenerated mock type for the BlockStore type
|
|
type BlockStore struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// Height provides a mock function with no fields
|
|
func (_m *BlockStore) Height() int64 {
|
|
ret := _m.Called()
|
|
|
|
if len(ret) == 0 {
|
|
panic("no return value specified for Height")
|
|
}
|
|
|
|
var r0 int64
|
|
if rf, ok := ret.Get(0).(func() int64); ok {
|
|
r0 = rf()
|
|
} else {
|
|
r0 = ret.Get(0).(int64)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// LoadBlockCommit provides a mock function with given fields: height
|
|
func (_m *BlockStore) LoadBlockCommit(height int64) *types.Commit {
|
|
ret := _m.Called(height)
|
|
|
|
if len(ret) == 0 {
|
|
panic("no return value specified for LoadBlockCommit")
|
|
}
|
|
|
|
var r0 *types.Commit
|
|
if rf, ok := ret.Get(0).(func(int64) *types.Commit); ok {
|
|
r0 = rf(height)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(*types.Commit)
|
|
}
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// LoadBlockMeta provides a mock function with given fields: height
|
|
func (_m *BlockStore) LoadBlockMeta(height int64) *types.BlockMeta {
|
|
ret := _m.Called(height)
|
|
|
|
if len(ret) == 0 {
|
|
panic("no return value specified for LoadBlockMeta")
|
|
}
|
|
|
|
var r0 *types.BlockMeta
|
|
if rf, ok := ret.Get(0).(func(int64) *types.BlockMeta); ok {
|
|
r0 = rf(height)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(*types.BlockMeta)
|
|
}
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// 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.
|
|
// The first argument is typically a *testing.T value.
|
|
func NewBlockStore(t interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}) *BlockStore {
|
|
mock := &BlockStore{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|