utils

package
v4.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: GPL-3.0 Imports: 10 Imported by: 60

Documentation

Overview

Package utils allows for easy switching of chain configuration parameters in spec conformity unit tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetConfig

func SetConfig(t testing.TB, config string) error

SetConfig sets the global params for spec tests depending on the option chosen. Provides reset function allowing to get back to the previous configuration at the end of a test.

func TestFolders

func TestFolders(t testing.TB, config, forkOrPhase, folderPath string) ([]os.DirEntry, string)

TestFolders sets the proper config and returns the result of ReadDir on the passed in eth2-spec-tests directory along with its path.

func UnmarshalYaml

func UnmarshalYaml(y []byte, dest interface{}) error

UnmarshalYaml using a customized json encoder that supports "spec-name" override tag.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL