func TestTimingHistogramNonMonotonicBuckets(t *testing.T) { … }
func exerciseTimingHistogramAndCollector(th GaugeOps, t0 time.Time, clk *unsyncFakeClock, collect func(chan<- prometheus.Metric), expectCollection ...GaugeOps) func(t *testing.T) { … }
func exerciseTimingHistogramCollector(t *testing.T, collect func(chan<- prometheus.Metric), expectCollection []GaugeOps) { … }
var thTestBuckets …
var thTestV0 …
func exerciseTimingHistogramData(t *testing.T, th GaugeOps, t0 time.Time, clk *unsyncFakeClock) { … }
func tDiff(hi, lo time.Time) float64 { … }
func findAndRemove(metrics []GaugeOps, seek GaugeOps) ([]GaugeOps, bool) { … }
func TestTimeIntegrationDirect(t *testing.T) { … }
func TestTimingHistogramVec(t *testing.T) { … }
type unsyncFakeClock …
func (ufc *unsyncFakeClock) Now() time.Time { … }
func (ufc *unsyncFakeClock) SetTime(now time.Time) { … }
func BenchmarkTimingHistogramDirect(b *testing.B) { … }
func BenchmarkTimingHistogramVecEltCached(b *testing.B) { … }
func BenchmarkTimingHistogramVecEltFetched(b *testing.B) { … }