Documentation ¶
Index ¶
- Constants
- Variables
- func ErrHandlerNotFound(handler string) error
- func ErrHandlerNotImplemented(handler string) error
- func ReadAnchorBlock(root fs.FS, version clparams2.StateVersion, name string) (*cltypes.BeaconBlock, error)
- func ReadBeaconState(root fs.FS, version clparams2.StateVersion, name string) (*state.CachingBeaconState, error)
- func ReadBlock(root fs.FS, version clparams2.StateVersion, index int) (*cltypes.SignedBeaconBlock, error)
- func ReadBlockSlot(root fs.FS, index int) (uint64, error)
- func ReadBlocks(root fs.FS, version clparams2.StateVersion) ([]*cltypes.SignedBeaconBlock, error)
- func ReadMeta(root fs.FS, name string, obj any) error
- func ReadSsz(root fs.FS, version clparams2.StateVersion, name string, obj ssz.Unmarshaler) error
- func ReadSszOld(root fs.FS, obj ssz.Unmarshaler, version clparams2.StateVersion, name string) error
- func ReadYml(root fs.FS, name string, obj any) error
- func RunCases(t *testing.T, app Appendix, machineImpl machine.Interface, root fs.FS)
- type Appendix
- type Format
- type Handler
- type HandlerFunc
- type RunDirectoryOptions
- type TestCase
- type TestCases
Constants ¶
View Source
const ( PreSsz = "pre.ssz_snappy" PostSsz = "post.ssz_snappy" MetaYaml = "meta.yaml" )
Variables ¶
View Source
var ErrorHandlerNotFound = errors.New("handler not found")
View Source
var ErrorHandlerNotImplemented = errors.New("handler not implemented")
View Source
var UnimplementedHandler = HandlerFunc(func(t *testing.T, root fs.FS, c TestCase) (err error) { t.Skipf("Handler not implemented: %s/%s", c.RunnerName, c.HandlerName) return nil })
Functions ¶
func ErrHandlerNotFound ¶
func ReadAnchorBlock ¶
func ReadAnchorBlock(root fs.FS, version clparams2.StateVersion, name string) (*cltypes.BeaconBlock, error)
func ReadBeaconState ¶
func ReadBeaconState(root fs.FS, version clparams2.StateVersion, name string) (*state.CachingBeaconState, error)
func ReadBlock ¶
func ReadBlock(root fs.FS, version clparams2.StateVersion, index int) (*cltypes.SignedBeaconBlock, error)
func ReadBlocks ¶
func ReadBlocks(root fs.FS, version clparams2.StateVersion) ([]*cltypes.SignedBeaconBlock, error)
func ReadSsz ¶
func ReadSsz(root fs.FS, version clparams2.StateVersion, name string, obj ssz.Unmarshaler) error
func ReadSszOld ¶
func ReadSszOld(root fs.FS, obj ssz.Unmarshaler, version clparams2.StateVersion, name string) error
Types ¶
type Format ¶
type Format struct {
// contains filtered or unexported fields
}
func (*Format) GetHandlers ¶
type HandlerFunc ¶
type RunDirectoryOptions ¶
type TestCase ¶
type TestCase struct { ConfigName string ForkPhaseName string RunnerName string HandlerName string SuiteName string CaseName string Machine machine.Interface }
func (*TestCase) Version ¶
func (t *TestCase) Version() clparams.StateVersion
Click to show internal directories.
Click to hide internal directories.