testutils

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package testutils provides utilities for tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetricsFromChannel

func MetricsFromChannel(dataChan chan *metrics.EventMetrics, num int, timeout time.Duration) (results []*metrics.EventMetrics, err error)

MetricsFromChannel reads metrics.EventMetrics from dataChannel with a timeout

func MetricsMap

func MetricsMap(ems []*metrics.EventMetrics) map[string]map[string][]metrics.Value

MetricsMap rearranges a list of metrics into a map of map.

{
  "m1": {
      "target1": [val1, val2..],
      "target2": [val1],
  },
  "m2": {
      ...
  }
}

Types

This section is empty.

Jump to

Keyboard shortcuts

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