testutils

package
v0.0.1-RC3 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error, expected bool, msg string) error

CheckError checks the given error taking into account if it was expected and potentially the message it should carry.

func CreateTestFiles

func CreateTestFiles(appFs afero.Fs, files map[string]string) error

CreateTestFiles creates the files in the map (path -> content) using the given afero file system.

func GetEnv

func GetEnv(key string, defaultValue string) string

GetEnv reads an environment variable, returning a given default value if not present.

func ReadBytecode

func ReadBytecode(contractPath string) (string, error)

ReadBytecode reads the bytecode of the given contract.

Types

This section is empty.

Jump to

Keyboard shortcuts

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