mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-20 06:54:41 +00:00
make the rest of the code compile
This commit is contained in:
@@ -6,10 +6,9 @@ import (
|
||||
context "context"
|
||||
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
light "github.com/tendermint/tendermint/pkg/light"
|
||||
|
||||
time "time"
|
||||
|
||||
types "github.com/tendermint/tendermint/types"
|
||||
)
|
||||
|
||||
// LightClient is an autogenerated mock type for the LightClient type
|
||||
@@ -32,15 +31,15 @@ func (_m *LightClient) ChainID() string {
|
||||
}
|
||||
|
||||
// TrustedLightBlock provides a mock function with given fields: height
|
||||
func (_m *LightClient) TrustedLightBlock(height int64) (*types.LightBlock, error) {
|
||||
func (_m *LightClient) TrustedLightBlock(height int64) (*light.LightBlock, error) {
|
||||
ret := _m.Called(height)
|
||||
|
||||
var r0 *types.LightBlock
|
||||
if rf, ok := ret.Get(0).(func(int64) *types.LightBlock); ok {
|
||||
var r0 *light.LightBlock
|
||||
if rf, ok := ret.Get(0).(func(int64) *light.LightBlock); ok {
|
||||
r0 = rf(height)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*types.LightBlock)
|
||||
r0 = ret.Get(0).(*light.LightBlock)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,15 +54,15 @@ func (_m *LightClient) TrustedLightBlock(height int64) (*types.LightBlock, error
|
||||
}
|
||||
|
||||
// Update provides a mock function with given fields: ctx, now
|
||||
func (_m *LightClient) Update(ctx context.Context, now time.Time) (*types.LightBlock, error) {
|
||||
func (_m *LightClient) Update(ctx context.Context, now time.Time) (*light.LightBlock, error) {
|
||||
ret := _m.Called(ctx, now)
|
||||
|
||||
var r0 *types.LightBlock
|
||||
if rf, ok := ret.Get(0).(func(context.Context, time.Time) *types.LightBlock); ok {
|
||||
var r0 *light.LightBlock
|
||||
if rf, ok := ret.Get(0).(func(context.Context, time.Time) *light.LightBlock); ok {
|
||||
r0 = rf(ctx, now)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*types.LightBlock)
|
||||
r0 = ret.Get(0).(*light.LightBlock)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,15 +77,15 @@ func (_m *LightClient) Update(ctx context.Context, now time.Time) (*types.LightB
|
||||
}
|
||||
|
||||
// VerifyLightBlockAtHeight provides a mock function with given fields: ctx, height, now
|
||||
func (_m *LightClient) VerifyLightBlockAtHeight(ctx context.Context, height int64, now time.Time) (*types.LightBlock, error) {
|
||||
func (_m *LightClient) VerifyLightBlockAtHeight(ctx context.Context, height int64, now time.Time) (*light.LightBlock, error) {
|
||||
ret := _m.Called(ctx, height, now)
|
||||
|
||||
var r0 *types.LightBlock
|
||||
if rf, ok := ret.Get(0).(func(context.Context, int64, time.Time) *types.LightBlock); ok {
|
||||
var r0 *light.LightBlock
|
||||
if rf, ok := ret.Get(0).(func(context.Context, int64, time.Time) *light.LightBlock); ok {
|
||||
r0 = rf(ctx, height, now)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*types.LightBlock)
|
||||
r0 = ret.Get(0).(*light.LightBlock)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user