- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for testMetric (0.3 sec)
-
pkg/registry/core/service/portallocator/allocator_test.go
nodePortAvailable.Set(0) nodePortAllocations.Reset() nodePortAllocationErrors.Reset() } type testMetrics struct { free float64 used float64 allocated float64 errors float64 } func expectMetrics(t *testing.T, em testMetrics) { var m testMetrics var err error m.free, err = testutil.GetGaugeMetricValue(nodePortAvailable) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 08 07:15:02 UTC 2024 - 14K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/metrics_test.go
Reset() []metrics.Registerable } func TestMetrics(t *testing.T) { featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, apiextensionsfeatures.CRDValidationRatcheting, true) // Wrap metric to keep time constant testMetrics := &fakeMetrics{original: validation.Metrics} validation.Metrics = testMetrics defer func() { validation.Metrics = testMetrics.original }() metricNames := []string{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 10.9K bytes - Viewed (1) -
pkg/volume/emptydir/empty_dir_test.go
if volPath != filepath.Join(basePath, "pods/poduid/volumes/kubernetes.io~empty-dir/vol1") { t.Errorf("Got unexpected path: %s", volPath) } } // TestMetrics tests that MetricProvider methods return sane values. func TestMetrics(t *testing.T) { // Create an empty temp directory for the volume tmpDir, err := utiltesting.MkTmpdir("empty_dir_test") if err != nil { t.Fatalf("Can't make a tmp dir: %v", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 30.7K bytes - Viewed (0)