- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for gatherHistogram (0.2 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/metrics/metrics_test.go
Metrics.ObserveCompilation(2 * time.Second) c, s := gatherHistogram(t, "apiserver_cel_compilation_duration_seconds") if c != 1 { t.Errorf("unexpected count: %v", c) } if math.Abs(s-2.0) > 1e-7 { t.Fatalf("incorrect sum: %v", s) } } func TestObserveEvaluation(t *testing.T) { defer legacyregistry.Reset() Metrics.ObserveEvaluation(2 * time.Second) c, s := gatherHistogram(t, "apiserver_cel_evaluation_duration_seconds")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 1.7K bytes - Viewed (0)