Documentation ¶
Index ¶
- func CheckError(err error, expected bool, msg string) error
- func CreateTestFiles(appFs afero.Fs, files map[string]string) error
- func GetEnv(key string, defaultValue string) string
- func ParseMetricFamilies(content io.Reader) (map[string]*ioprometheusclient.MetricFamily, error)
- func ReadBytecode(contractPath string) (string, error)
- func WaitUntil(t *testing.T, wg *sync.WaitGroup, timeout time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
CheckError checks the given error taking into account if it was expected and potentially the message it should carry.
func CreateTestFiles ¶
CreateTestFiles creates the files in the map (path -> content) using the given afero file system.
func ParseMetricFamilies ¶
func ParseMetricFamilies(content io.Reader) (map[string]*ioprometheusclient.MetricFamily, error)
ParseMetricFamilies parsing prometheus response from http endpoint
func ReadBytecode ¶
ReadBytecode reads the bytecode of the given contract.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.