teststat

package
v0.0.0-...-4a35c31 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2015 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package teststat contains helper functions for statistical testing of metrics implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertExpvarNormalHistogram

func AssertExpvarNormalHistogram(t *testing.T, metricName string, mean, stdev int64, quantiles []int)

AssertExpvarNormalHistogram ensures the expvar Histogram referenced by metricName abides a normal distribution.

func AssertPrometheusBucketedHistogram

func AssertPrometheusBucketedHistogram(t *testing.T, metricName string, mean, stdev int64, buckets []float64)

AssertPrometheusBucketedHistogram ensures the Prometheus Histogram referenced by name has observations in the expected quantity and bucket.

func AssertPrometheusNormalSummary

func AssertPrometheusNormalSummary(t *testing.T, metricName string, mean, stdev int64)

AssertPrometheusNormalSummary ensures the Prometheus Summary referenced by name abides a normal distribution.

func PopulateNormalHistogram

func PopulateNormalHistogram(t *testing.T, h metrics.Histogram, seed int64, mean, stdev int64)

PopulateNormalHistogram populates the Histogram with a normal distribution of observations.

func ScrapePrometheus

func ScrapePrometheus(t *testing.T) string

ScrapePrometheus returns the text encoding of the current state of Prometheus.

Types

This section is empty.

Jump to

Keyboard shortcuts

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