testutils

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 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.EventMetrics

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