common

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GethFlag = cli.StringFlag{
		Name:  "geth",
		Usage: "Location of go-ethereum 'evm' binary",
	}
	ParityFlag = cli.StringFlag{
		Name:  "parity",
		Usage: "Location of go-ethereum 'parity-vm' binary",
	}
	NethermindFlag = cli.StringFlag{
		Name:  "nethermind",
		Usage: "Location of nethermind 'nethtest' binary",
	}
	AlethFlag = cli.StringFlag{
		Name:  "testeth",
		Usage: "Location of aleth 'testeth' binary",
	}
	BesuFlag = cli.StringFlag{
		Name:  "besu",
		Usage: "Location of besu vm binary",
	}
	BesuBatchFlag = cli.StringFlag{
		Name:  "besubatch",
		Usage: "Location of besu vm binary",
	}
	ThreadFlag = cli.IntFlag{
		Name:  "parallel",
		Usage: "Number of parallel executions to use.",
		Value: runtime.NumCPU(),
	}
	LocationFlag = cli.StringFlag{
		Name:  "outdir",
		Usage: "Location to place artefacts",
		Value: "/tmp",
	}
	PrefixFlag = cli.StringFlag{
		Name:  "prefix",
		Usage: "prefix of output files",
	}
	CountFlag = cli.IntFlag{
		Name:  "count",
		Usage: "number of tests to generate",
	}
	VmFlags = []cli.Flag{
		GethFlag,
		ParityFlag,
		NethermindFlag,
		AlethFlag,
		BesuFlag,
		BesuBatchFlag,
	}
)

Functions

func Copy

func Copy(src, dst string) error

Copy the src file to dst. Any existing file will be overwritten and will not copy file attributes.

func ExecuteFuzzer

func ExecuteFuzzer(c *cli.Context, generatorFn GeneratorFn, name string) error

func RootsEqual

func RootsEqual(path string, c *cli.Context) (bool, error)

func RunOneTest

func RunOneTest(path string, c *cli.Context) error

func StoreTest

func StoreTest(location string, test *fuzzing.GeneralStateTest, testName string) (string, error)

storeTest saves a testcase to disk

func TestSpeed

func TestSpeed(path string, c *cli.Context) (bool, error)

Types

type GeneratorFn

type GeneratorFn func() *fuzzing.GstMaker

Jump to

Keyboard shortcuts

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