// Code generated by mockery v1.0.0. DO NOT EDIT.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
mock "github.com/stretchr/testify/mock"
|
|
state "github.com/tendermint/tendermint/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
|
|
}
|
|
|
|
// Header provides a mock function with given fields: _a0
|
|
func (_m *EvidencePool) Header(_a0 int64) *types.Header {
|
|
ret := _m.Called(_a0)
|
|
|
|
var r0 *types.Header
|
|
if rf, ok := ret.Get(0).(func(int64) *types.Header); ok {
|
|
r0 = rf(_a0)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(*types.Header)
|
|
}
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// IsCommitted provides a mock function with given fields: _a0
|
|
func (_m *EvidencePool) IsCommitted(_a0 types.Evidence) bool {
|
|
ret := _m.Called(_a0)
|
|
|
|
var r0 bool
|
|
if rf, ok := ret.Get(0).(func(types.Evidence) bool); ok {
|
|
r0 = rf(_a0)
|
|
} else {
|
|
r0 = ret.Get(0).(bool)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// IsPending provides a mock function with given fields: _a0
|
|
func (_m *EvidencePool) IsPending(_a0 types.Evidence) bool {
|
|
ret := _m.Called(_a0)
|
|
|
|
var r0 bool
|
|
if rf, ok := ret.Get(0).(func(types.Evidence) bool); ok {
|
|
r0 = rf(_a0)
|
|
} else {
|
|
r0 = ret.Get(0).(bool)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// PendingEvidence provides a mock function with given fields: _a0
|
|
func (_m *EvidencePool) PendingEvidence(_a0 uint32) []types.Evidence {
|
|
ret := _m.Called(_a0)
|
|
|
|
var r0 []types.Evidence
|
|
if rf, ok := ret.Get(0).(func(uint32) []types.Evidence); ok {
|
|
r0 = rf(_a0)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).([]types.Evidence)
|
|
}
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// Update provides a mock function with given fields: _a0, _a1
|
|
func (_m *EvidencePool) Update(_a0 *types.Block, _a1 state.State) {
|
|
_m.Called(_a0, _a1)
|
|
}
|