- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for makeSet (0.34 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/sets/set_test.go
{1000, 20, 60}, } for i := range cases { here := cases[i] makeSet := func() String { s := NewString() for j := 0; j < here.size; j++ { s.Insert(randomStringMaker.makeString(here.minStringLen, here.maxStringLen)) } return s } operands := make([]String, 500) for i := range operands { operands[i] = makeSet() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 03:47:18 UTC 2022 - 8K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue_test.go
if err != nil { t.Fatalf("unexpected error from AddUnschedulableIfNotPresent: %v", err) } expectedSet := makeSet([]*v1.Pod{medPriorityPodInfo.Pod, unschedulablePodInfo.Pod, highPriorityPodInfo.Pod}) gotPods, gotSummary := q.PendingPods() if diff := cmp.Diff(expectedSet, makeSet(gotPods)); diff != "" { t.Errorf("Unexpected list of pending Pods (-want, +got):\n%s", diff) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 146.9K bytes - Viewed (0) -
src/go/constant/value.go
switch y := y.(type) { case unknownVal: return y case int64Val: if z := -y; z != y { return z // no overflow } return makeInt(newInt().Neg(big.NewInt(int64(y)))) case intVal: return makeInt(newInt().Neg(y.val)) case ratVal: return makeRat(newRat().Neg(y.val)) case floatVal: return makeFloat(newFloat().Neg(y.val)) case complexVal: re := UnaryOp(token.SUB, y.re, 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 34K bytes - Viewed (0) -
test/makenew.go
Robert Griesemer <******@****.***> 1607048150 -0800
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 04 21:22:23 UTC 2020 - 605 bytes - Viewed (0) -
src/archive/tar/writer_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 38.7K bytes - Viewed (0) -
cni/pkg/nodeagent/healthServer_test.go
defer server.Close() makeReq(t, server.URL, constants.LivenessEndpoint, http.StatusOK) makeReq(t, server.URL, constants.ReadinessEndpoint, http.StatusServiceUnavailable) installReady.Store(true) watchReady.Store(true) assert.Equal(t, installReady.Load(), true) assert.Equal(t, watchReady.Load(), true) makeReq(t, server.URL, constants.LivenessEndpoint, http.StatusOK)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 2K bytes - Viewed (0) -
src/archive/tar/reader_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 21 21:14:38 UTC 2022 - 47.1K bytes - Viewed (0) -
pkg/proxy/conntrack/conntrack_test.go
for _, tc := range testCases { ct := makeCT(success) if err := ct.ClearEntriesForIP(tc.ip, v1.ProtocolUDP); err != nil { t.Errorf("%s/success: Unexpected error: %v", tc.name, err) } execCommand := ct.getExecutedCommand() if tc.expectCommand != execCommand { t.Errorf("%s/success: Expect command: %s, but executed %s", tc.name, tc.expectCommand, execCommand) } ct = makeCT(nothingToDelete)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 15 18:08:36 UTC 2024 - 6.7K bytes - Viewed (0) -
src/syscall/syscall_linux_loong64.go
//sys statx(dirfd int, path string, flags int, mask int, stat *statx_t) (err error) // makedev makes C dev_t from major and minor numbers the glibc way: // 0xMMMM_MMMM 0xmmmm_mmmm -> 0xMMMM_Mmmm_mmmM_MMmm func makedev(major uint32, minor uint32) uint64 { majorH := uint64(major >> 12) majorL := uint64(major & 0xfff) minorH := uint64(minor >> 8) minorL := uint64(minor & 0xff)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 22:23:07 UTC 2023 - 7.1K bytes - Viewed (0) -
src/internal/concurrent/hashtriemap_test.go
gmp := runtime.GOMAXPROCS(-1) var wg sync.WaitGroup for i := range gmp { wg.Add(1) go func(id int) { defer wg.Done() makeKey := func(s string) string { return s + "-" + strconv.Itoa(id) } for _, s := range testData { key := makeKey(s) expectMissing(t, key, 0)(m.Load(key)) expectStored(t, key, id)(m.LoadOrStore(key, id)) expectPresent(t, key, id)(m.Load(key))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 16:01:55 UTC 2024 - 9.3K bytes - Viewed (0)