kubernetes/staging/src/k8s.io/component-base/metrics/prometheusextension/timing_histogram_test.go

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

// exerciseTimingHistogramData takes the given histogram through the following points in (time,value) space.
// t0 is the clock time of the histogram's construction
// value=v0 for t0 <= t <= t1 where v0 = 0.25 and t1 = t0 + 1 ns
// value=v1 for t1 <= t <= t2 where v1 = 0.75 and t2 = t1 + 1 microsecond
// value=v2 for t2 <= t <= t3 where v2 = 1.25 and t3 = t2 + 1 millisecond
// value=v3 for t3 <= t <= t4 where v3 = 0.65 and t4 = t3 + 1 second
func exerciseTimingHistogramData(t *testing.T, th GaugeOps, t0 time.Time, clk *unsyncFakeClock) {}

// tDiff returns a time difference as float
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) {}