- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 319 for Cmp (0.06 sec)
-
pkg/apis/storage/v1/defaults_test.go
See the License for the specific language governing permissions and limitations under the License. */ package v1_test import ( "reflect" "testing" "github.com/google/go-cmp/cmp" storagev1 "k8s.io/api/storage/v1" "k8s.io/apimachinery/pkg/runtime" utilfeature "k8s.io/apiserver/pkg/util/feature" featuregatetesting "k8s.io/component-base/featuregate/testing" "k8s.io/kubernetes/pkg/api/legacyscheme"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 5.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 23.8K bytes - Viewed (0) -
src/net/dnsclient.go
} } // sort reorders SRV records as specified in RFC 2782. func (addrs byPriorityWeight) sort() { slices.SortFunc(addrs, func(a, b *SRV) int { if r := cmp.Compare(a.Priority, b.Priority); r != 0 { return r } return cmp.Compare(a.Weight, b.Weight) }) i := 0 for j := 1; j < len(addrs); j++ { if addrs[i].Priority != addrs[j].Priority { addrs[i:j].shuffleByWeight() i = j }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:53 UTC 2024 - 5.7K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_tidy_compat_incompatible.txt
[exec:patch] cp stdout diff.patch [exec:patch] exec patch -p1 -i diff.patch [exec:patch] go mod tidy -compat=1.17 -diff [exec:patch] ! stdout . [exec:patch] cmp go.mod go.mod.tidyResult [exec:patch] cmp go.sum go.sum.tidyResult go mod edit -go=1.16 ! go list -f $MODFMT -deps ./...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 5.5K bytes - Viewed (0) -
src/cmd/trace/regions.go
for _, stats := range summary { userRegions = append(userRegions, stats) } slices.SortFunc(userRegions, func(a, b regionStats) int { if c := cmp.Compare(a.Type, b.Type); c != 0 { return c } return cmp.Compare(a.Frame.PC, b.Frame.PC) }) // Emit table. err := templUserRegionTypes.Execute(w, userRegions) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 14.3K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/interpodaffinity/plugin_test.go
See the License for the specific language governing permissions and limitations under the License. */ package interpodaffinity import ( "context" "testing" "github.com/google/go-cmp/cmp" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/klog/v2/ktesting" "k8s.io/kubernetes/pkg/scheduler/apis/config" "k8s.io/kubernetes/pkg/scheduler/framework"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 12 03:08:44 UTC 2024 - 9.7K bytes - Viewed (0) -
src/testing/benchmark_test.go
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package testing_test import ( "bytes" "cmp" "runtime" "slices" "strings" "sync/atomic" "testing" "text/template" "time" ) var prettyPrintTests = []struct { v float64 expected string }{ {0, " 0 x"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 5.6K bytes - Viewed (0) -
src/cmd/go/testdata/script/build_pgo.txt
# build again with the same profile, should be cached go build -x -pgo=prof -o triv.exe triv.go ! stderr 'compile.*triv.go' # check that the build ID is the same go list -export -json=BuildID -pgo=prof triv.go cmp stdout list.out # overwrite the prof go run overwrite.go # build again, profile content changed, should trigger rebuild, including std go build -n -pgo=prof triv.go stderr 'preprofile.*-i.*prof'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:39:17 UTC 2024 - 2.1K bytes - Viewed (0) -
src/cmd/go/testdata/script/build_plugin_reproducible.txt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 19:07:03 UTC 2024 - 296 bytes - Viewed (0) -
pkg/volume/emptydir/empty_dir.go
if podMemoryLimit.Cmp(zero) > 0 && podMemoryLimit.Cmp(*sizeLimit) < 1 { sizeLimit = podMemoryLimit } } // volume local size is used if and only if less than what pod could consume if spec.Volume.EmptyDir.SizeLimit != nil { volumeSizeLimit := spec.Volume.EmptyDir.SizeLimit // ensure 0 < value < size if volumeSizeLimit.Cmp(zero) > 0 && volumeSizeLimit.Cmp(*sizeLimit) < 1 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 19K bytes - Viewed (0)