- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 139 for genMetrics (0.32 sec)
-
pkg/volume/metrics_nil_test.go
} } func TestMetricsNilGetCapacity(t *testing.T) { metrics := &MetricsNil{} actual, err := metrics.GetMetrics() expected := &Metrics{} if *actual != *expected { t.Errorf("Expected empty Metrics, actual %v", *actual) } if err == nil { t.Errorf("Expected error when calling GetMetrics, actual nil") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 20 15:10:23 UTC 2021 - 1.1K bytes - Viewed (0) -
.github/ISSUE_TEMPLATE/11-language-change.yml
validations: required: true - type: textarea id: generics-proposal attributes: label: Is this about generics? description: If so, how does this relate to the accepted design and other generics proposals? placeholder: | Yes or No If yes, 1. how does this relate to the accepted design and other generics proposals? validations: required: true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 22 20:49:24 UTC 2023 - 4.7K bytes - Viewed (0) -
pkg/volume/csi/csi_metrics_test.go
fakeCloser := fake.NewCloser(t) nodeClient.SetNodeVolumeStatsResp(getRawVolumeInfo()) return nodeClient, fakeCloser, nil }, } metrics, err := metricsGetter.GetMetrics() if err != nil { t.Fatalf("for %s: unexpected error : %v", tc.name, err) } if metrics == nil { t.Fatalf("unexpected nil metrics") } expectedMetrics := getRawVolumeInfo()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 11 06:07:40 UTC 2023 - 5.8K bytes - Viewed (0) -
src/cmd/go/testdata/script/install_dep_version.txt
# because the checksumOk function was failing because modfetch.GoSumFile # was not set when running outside of a module. env GOTOOLCHAIN=local
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 16:36:17 UTC 2023 - 364 bytes - Viewed (0) -
pkg/kubelet/metrics/collectors/cri_metrics.go
return } for _, podMetric := range podMetrics { for _, metric := range podMetric.GetMetrics() { promMetric, err := c.criMetricToProm(metric) if err == nil { ch <- promMetric } } for _, ctrMetric := range podMetric.GetContainerMetrics() { for _, metric := range ctrMetric.GetMetrics() { promMetric, err := c.criMetricToProm(metric) if err == nil { ch <- promMetric }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 23 13:24:29 UTC 2023 - 4.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/Derived.java
* limitations under the License. */ package com.google.common.collect; import com.google.common.annotations.GwtCompatible; /** Simple derived class to verify that we handle generics correctly. */ @GwtCompatible class Derived extends Base { public Derived(String s) { super(s); } private static final long serialVersionUID = 0;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Oct 03 22:29:45 UTC 2023 - 908 bytes - Viewed (0) -
pkg/kubelet/stats/host_stats_provider_fake.go
result := rootFsInfoToFsStats(rootFsInfo) for i, metricsProvider := range metricsProviders { hostMetrics, err := metricsProvider.GetMetrics() if err != nil { return nil, fmt.Errorf("failed to get stats for item %d: %v", i, err) } usedBytes := uint64(hostMetrics.Used.Value()) inodesUsed := uint64(hostMetrics.InodesUsed.Value())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 16 17:57:17 UTC 2024 - 3.9K bytes - Viewed (0) -
test/typeparam/sliceimp.dir/a.go
} return Reduce(s[1:], s[0], Min[Elem]) } // Append adds values to the end of a slice, returning a new slice. // This is like the predeclared append function; it's an example // of how to write it using generics. We used to write code like // this before append was added to the language, but we had to write // a separate copy for each type. func Append[T any](s []T, t ...T) []T { lens := len(s) tot := lens + len(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 30 01:55:58 UTC 2021 - 3.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/DerivedComparable.java
* limitations under the License. */ package com.google.common.collect.testing; import com.google.common.annotations.GwtCompatible; /** * Simple derived class to verify that we handle generics correctly. * * @author Kevin Bourrillion */ @GwtCompatible public class DerivedComparable extends BaseComparable { public DerivedComparable(String s) { super(s); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 11 18:08:12 UTC 2012 - 989 bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/internal/typeconversion/TypeInfo.java
* limitations under the License. */ package org.gradle.internal.typeconversion; import org.gradle.internal.Cast; /** * Type literal, useful for nested Generics. */ public class TypeInfo<T> { private final Class<T> targetType; public TypeInfo(Class<?> targetType) { assert targetType != null; this.targetType = Cast.uncheckedNonnullCast(targetType);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 27 16:13:20 UTC 2020 - 1K bytes - Viewed (0)