mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-29 03:05:49 +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>
72 lines
1.6 KiB
Go
72 lines
1.6 KiB
Go
// Code generated by mockery. DO NOT EDIT.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
mock "github.com/stretchr/testify/mock"
|
|
|
|
state "github.com/tendermint/tendermint/internal/state"
|
|
types "github.com/tendermint/tendermint/types"
|
|
)
|
|
|
|
// EvidencePool is an autogenerated mock type for the EvidencePool type
|
|
type EvidencePool struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// AddEvidence provides a mock function with given fields: _a0
|
|
func (_m *EvidencePool) AddEvidence(_a0 types.Evidence) error {
|
|
ret := _m.Called(_a0)
|
|
|
|
var r0 error
|
|
if rf, ok := ret.Get(0).(func(types.Evidence) error); ok {
|
|
r0 = rf(_a0)
|
|
} else {
|
|
r0 = ret.Error(0)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// CheckEvidence provides a mock function with given fields: _a0
|
|
func (_m *EvidencePool) CheckEvidence(_a0 types.EvidenceList) error {
|
|
ret := _m.Called(_a0)
|
|
|
|
var r0 error
|
|
if rf, ok := ret.Get(0).(func(types.EvidenceList) error); ok {
|
|
r0 = rf(_a0)
|
|
} else {
|
|
r0 = ret.Error(0)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// PendingEvidence provides a mock function with given fields: maxBytes
|
|
func (_m *EvidencePool) PendingEvidence(maxBytes int64) ([]types.Evidence, int64) {
|
|
ret := _m.Called(maxBytes)
|
|
|
|
var r0 []types.Evidence
|
|
if rf, ok := ret.Get(0).(func(int64) []types.Evidence); ok {
|
|
r0 = rf(maxBytes)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).([]types.Evidence)
|
|
}
|
|
}
|
|
|
|
var r1 int64
|
|
if rf, ok := ret.Get(1).(func(int64) int64); ok {
|
|
r1 = rf(maxBytes)
|
|
} else {
|
|
r1 = ret.Get(1).(int64)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// Update provides a mock function with given fields: _a0, _a1
|
|
func (_m *EvidencePool) Update(_a0 state.State, _a1 types.EvidenceList) {
|
|
_m.Called(_a0, _a1)
|
|
}
|