mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 17:22:18 +00:00
386b69f473
* fix incorrect exported name in comments * add comments to exported methods
18 lines
359 B
Go
18 lines
359 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
|
|
}
|
|
|
|
// State --
|
|
func (m *MockFetcher) State(context.Context, []byte) (iface.BeaconState, error) {
|
|
return m.BeaconState, nil
|
|
}
|