tests

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMetricsValue

func GetMetricsValue(url string, metrics ...string) (map[string]float64, error)

func Outf

func Outf(format string, args ...interface{})

Outputs to stdout.

Examples:

  • Out("{{green}}{{bold}}hi there %q{{/}}", "aa")
  • Out("{{magenta}}{{bold}}hi therea{{/}} {{cyan}}{{underline}}b{{/}}")

See https://github.com/onsi/ginkgo/blob/v2.0.0/formatter/formatter.go#L52-L73 for an exhaustive list of color options.

Types

type NodeMetrics

type NodeMetrics map[string]float64

"metric name" -> "metric value"

func GetNodeMetrics

func GetNodeMetrics(nodeURI string, metricNames ...string) (NodeMetrics, error)

GetNodeMetrics retrieves the specified metrics the provided node URI.

type NodesMetrics

type NodesMetrics map[string]NodeMetrics

URI -> "metric name" -> "metric value"

func GetNodesMetrics

func GetNodesMetrics(nodeURIs []string, metricNames ...string) (NodesMetrics, error)

GetNodesMetrics retrieves the specified metrics for the provided node URIs.

Directories

Path Synopsis
e2e
e2e implements the e2e tests.
e2e implements the e2e tests.
a
a/transfer
Implements A-chain transfer tests.
Implements A-chain transfer tests.
banff
Implements tests for the banff network upgrade.
Implements tests for the banff network upgrade.
d
o
static-handlers
Implements static handlers tests for alpha and omegavm
Implements static handlers tests for alpha and omegavm

Jump to

Keyboard shortcuts

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