mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-21 07:24:36 +00:00
* Rebased and git-squashed the commits in PR #6546 migrate abci to finalizeBlock work on abci, proxy and mempool abciresponse, blok events, indexer, some tests fix some tests fix errors fix errors in abci fix tests amd errors * Fixes after rebasing PR#6546 * Restored height to RequestFinalizeBlock & other * Fixed more UTs * Fixed kvstore * More UT fixes * last TC fixed * make format * Update internal/consensus/mempool_test.go Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com> * Addressed @williambanfield's comments * Fixed UTs * Addressed last comments from @williambanfield * make format Co-authored-by: marbar3778 <marbar3778@yahoo.com> Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com>
86 lines
1.9 KiB
Go
86 lines
1.9 KiB
Go
// Code generated by mockery. DO NOT EDIT.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
context "context"
|
|
|
|
mock "github.com/stretchr/testify/mock"
|
|
|
|
state "github.com/tendermint/tendermint/internal/state"
|
|
|
|
types "github.com/tendermint/tendermint/types"
|
|
)
|
|
|
|
// StateProvider is an autogenerated mock type for the StateProvider type
|
|
type StateProvider struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// AppHash provides a mock function with given fields: ctx, height
|
|
func (_m *StateProvider) AppHash(ctx context.Context, height uint64) ([]byte, error) {
|
|
ret := _m.Called(ctx, height)
|
|
|
|
var r0 []byte
|
|
if rf, ok := ret.Get(0).(func(context.Context, uint64) []byte); ok {
|
|
r0 = rf(ctx, height)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).([]byte)
|
|
}
|
|
}
|
|
|
|
var r1 error
|
|
if rf, ok := ret.Get(1).(func(context.Context, uint64) error); ok {
|
|
r1 = rf(ctx, height)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// Commit provides a mock function with given fields: ctx, height
|
|
func (_m *StateProvider) Commit(ctx context.Context, height uint64) (*types.Commit, error) {
|
|
ret := _m.Called(ctx, height)
|
|
|
|
var r0 *types.Commit
|
|
if rf, ok := ret.Get(0).(func(context.Context, uint64) *types.Commit); ok {
|
|
r0 = rf(ctx, height)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(*types.Commit)
|
|
}
|
|
}
|
|
|
|
var r1 error
|
|
if rf, ok := ret.Get(1).(func(context.Context, uint64) error); ok {
|
|
r1 = rf(ctx, height)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// State provides a mock function with given fields: ctx, height
|
|
func (_m *StateProvider) State(ctx context.Context, height uint64) (state.State, error) {
|
|
ret := _m.Called(ctx, height)
|
|
|
|
var r0 state.State
|
|
if rf, ok := ret.Get(0).(func(context.Context, uint64) state.State); ok {
|
|
r0 = rf(ctx, height)
|
|
} else {
|
|
r0 = ret.Get(0).(state.State)
|
|
}
|
|
|
|
var r1 error
|
|
if rf, ok := ret.Get(1).(func(context.Context, uint64) error); ok {
|
|
r1 = rf(ctx, height)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|