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.

        Source Files