mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-20 06:06:15 +00:00
evidence: modify evidence types (#5342) light: detect light client attacks (#5344) evidence: refactor evidence pool (#5345) abci: application evidence prepared by evidence pool (#5354)
53 lines
1.1 KiB
Go
53 lines
1.1 KiB
Go
// Code generated by mockery v2.1.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"
|
|
)
|
|
|
|
// StateStore is an autogenerated mock type for the StateStore type
|
|
type StateStore struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// LoadState provides a mock function with given fields:
|
|
func (_m *StateStore) LoadState() state.State {
|
|
ret := _m.Called()
|
|
|
|
var r0 state.State
|
|
if rf, ok := ret.Get(0).(func() state.State); ok {
|
|
r0 = rf()
|
|
} else {
|
|
r0 = ret.Get(0).(state.State)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// LoadValidators provides a mock function with given fields: height
|
|
func (_m *StateStore) LoadValidators(height int64) (*types.ValidatorSet, error) {
|
|
ret := _m.Called(height)
|
|
|
|
var r0 *types.ValidatorSet
|
|
if rf, ok := ret.Get(0).(func(int64) *types.ValidatorSet); ok {
|
|
r0 = rf(height)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(*types.ValidatorSet)
|
|
}
|
|
}
|
|
|
|
var r1 error
|
|
if rf, ok := ret.Get(1).(func(int64) error); ok {
|
|
r1 = rf(height)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|