- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for SortSlices (0.24 sec)
-
pkg/controller/servicecidrs/servicecidrs_controller_test.go
_, controller := newController(tCtx, t, tt.cidrs, nil) err := controller.syncCIDRs() if err != nil { t.Fatal(err) } if got := controller.containingServiceCIDRs(tt.ip); !cmp.Equal(got, tt.want, cmpopts.SortSlices(func(a, b string) bool { return a < b })) { t.Errorf("Controller.ipToCidrs() = %v, want %v", got, tt.want) } }) } } func TestController_cidrToCidrs(t *testing.T) { tests := []struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 06:51:56 UTC 2024 - 22K bytes - Viewed (0) -
pkg/scheduler/util/assumecache/assume_cache_test.go
} } func verifyList(tCtx ktesting.TContext, assumeCache *AssumeCache, expectedObjs []interface{}, indexObj interface{}) { actualObjs := assumeCache.List(indexObj) diff := cmp.Diff(expectedObjs, actualObjs, cmpopts.SortSlices(func(x, y interface{}) bool { xKey, err := cache.MetaNamespaceKeyFunc(x) if err != nil { tCtx.Fatalf("unexpected error determining key for %v: %v", x, err) } yKey, err := cache.MetaNamespaceKeyFunc(y)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 09:46:58 UTC 2024 - 9.5K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/volume_binding_test.go
cmp.AllowUnexported(stateData{}), cmp.AllowUnexported(PodVolumeClaims{}), cmpopts.IgnoreFields(stateData{}, "Mutex"), cmpopts.SortSlices(func(a *v1.PersistentVolume, b *v1.PersistentVolume) bool { return a.Name < b.Name }), cmpopts.SortSlices(func(a v1.NodeSelectorRequirement, b v1.NodeSelectorRequirement) bool { return a.Key < b.Key }), }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 32K bytes - Viewed (0) -
pkg/apis/apps/validation/validation_test.go
), errs: field.ErrorList{ field.Invalid(field.NewPath("spec", "ordinals.start"), nil, ""), }, }, } cmpOpts := []cmp.Option{cmpopts.IgnoreFields(field.Error{}, "BadValue", "Detail"), cmpopts.SortSlices(func(a, b *field.Error) bool { return a.Error() < b.Error() })} for _, testCase := range append(successCases, errorCases...) { name := testCase.name var testTitle string if len(testCase.errs) == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 111.9K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue_test.go
} if test.wantActiveQPodNames != nil { rawPodInfos := q.activeQ.List() if len(rawPodInfos) != len(test.wantActiveQPodNames) { diff := cmp.Diff(test.wantActiveQPodNames, rawPodInfos, cmpopts.SortSlices(func(a, b interface{}) bool { return a.(framework.PodInfo).Pod.Name < b.(framework.PodInfo).Pod.Name }))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 146.9K bytes - Viewed (0)