Documentation ¶
Overview ¶
Package teststat contains helper functions for statistical testing of metrics implementations.
Index ¶
- func AssertExpvarNormalHistogram(t *testing.T, metricName string, mean, stdev int64, quantiles []int)
- func AssertPrometheusNormalHistogram(t *testing.T, metricName string, mean, stdev int64)
- func PopulateNormalHistogram(t *testing.T, h metrics.Histogram, seed int64, mean, stdev int64)
- func ScrapePrometheus(t *testing.T) string
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 AssertPrometheusNormalHistogram ¶
AssertPrometheusNormalHistogram ensures the Prometheus Histogram referenced by metricName abides a normal distribution.
func PopulateNormalHistogram ¶
PopulateNormalHistogram populates the Histogram with a normal distribution of observations.
func ScrapePrometheus ¶
ScrapePrometheus returns the text encoding of the current state of Prometheus.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.