mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-16 23:08:45 +00:00
17 lines
347 B
Go
17 lines
347 B
Go
|
package testutil
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
iface "github.com/prysmaticlabs/prysm/beacon-chain/state/interface"
|
||
|
)
|
||
|
|
||
|
// MockFetcher is a fake implementation of statefetcher.Fetcher.
|
||
|
type MockFetcher struct {
|
||
|
BeaconState iface.BeaconState
|
||
|
}
|
||
|
|
||
|
func (m *MockFetcher) State(context.Context, []byte) (iface.BeaconState, error) {
|
||
|
return m.BeaconState, nil
|
||
|
}
|