- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 48 for expectedLen (0.21 sec)
-
src/net/ipsock_test.go
} if !reflect.DeepEqual(fallbacks, tt.fallbacks) { t.Errorf("#%v: got %v; want %v", i, fallbacks, tt.fallbacks) } expectedLen := len(primaries) + len(fallbacks) if len(addrs) != expectedLen { t.Errorf("#%v: got %v; want %v", i, len(addrs), expectedLen) } } } func TestAddrListPartition(t *testing.T) { addrs := addrList{ &IPAddr{IP: ParseIP("fe80::"), Zone: "eth0"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Apr 15 22:22:09 UTC 2017 - 6.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_encryption.go
func validateKeys(keys []apiserver.Key, fieldPath *field.Path, expectedLen []int) field.ErrorList { allErrs := field.ErrorList{} if len(keys) == 0 { allErrs = append(allErrs, field.Required(fieldPath, fmt.Sprintf(atLeastOneRequiredErrFmt, "keys"))) return allErrs } for i, key := range keys { allErrs = append(allErrs, validateKey(key, fieldPath.Index(i), expectedLen)...) } return allErrs }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Dec 18 20:54:24 UTC 2023 - 13.3K bytes - Viewed (0) -
src/crypto/tls/conn_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 21:35:01 UTC 2023 - 10.5K bytes - Viewed (0) -
pkg/kubelet/cm/dra/claiminfo_test.go
for _, test := range []struct { description string claimInfo *ClaimInfo expectedLen int }{ { description: "successfully add pod reference", claimInfo: &ClaimInfo{ ClaimInfoState: state.ClaimInfoState{ PodUIDs: sets.New[string](), }, }, expectedLen: 1, }, { description: "duplicate pod reference", claimInfo: &ClaimInfo{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 03 13:30:31 UTC 2024 - 21K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/conversion/conversion_test.go
t.Fatal(err) } else if !found { t.Fatalf("expected .defaults to exist") } expectedLen := 1 if !createVersion.Storage { expectedLen++ } if len(defaults) != expectedLen { t.Fatalf("after %s create expected .defaults to have %d values, but got: %v", createVersion.Name, expectedLen, defaults) } if _, found := defaults[createVersion.Name].(bool); !found {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 06 05:32:34 UTC 2023 - 47.1K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue_test.go
for i, op := range test.operations { op(t, logger, queue, test.operands[i]) } expectedLen := len(test.expected) if queue.activeQ.Len() != expectedLen { t.Fatalf("Expected %v items to be in activeQ, but got: %v", expectedLen, queue.activeQ.Len()) } for i := 0; i < expectedLen; i++ { if pInfo, err := queue.activeQ.Pop(); err != nil {
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/crypto/tls/handshake_client_test.go
t.Fatalf("%s: no keylog line was produced", side) } const expectedLen = 13 /* "CLIENT_RANDOM" */ + 1 /* space */ + 32*2 /* hex client nonce */ + 1 /* space */ + 48*2 /* hex master secret */ + 1 /* new line */ if len(loggedLine) != expectedLen { t.Fatalf("%s: keylog line has incorrect length (want %d, got %d): %q", side, expectedLen, len(loggedLine), loggedLine) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 88.7K bytes - Viewed (0) -
pkg/controller/garbagecollector/dump_test.go
compareGraphs(test.expectNodes, actualNodes, test.expectEdges, actualEdges, t) }) } } func TestToDOTGraphObj(t *testing.T) { tests := []struct { name string uidToNode map[types.UID]*node uids []types.UID expectNodes []*dotVertex expectEdges []dotEdge }{ { name: "simple", uidToNode: map[types.UID]*node{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 14 00:05:53 UTC 2023 - 11.2K bytes - Viewed (0) -
security/pkg/pki/util/dual_use_test.go
func TestDualUseCommonName(t *testing.T) { tt := []struct { name string host string expectedCN string expectErr bool }{ { name: "single host", host: "a.com", expectedCN: "a.com", }, { name: "multiple hosts", host: "a.com,b.org,c.groups", expectedCN: "a.com", }, { name: "long host", host: strings.Repeat("a", 61) + ".com",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 29 20:42:01 UTC 2020 - 1.4K bytes - Viewed (0) -
pkg/controller/deployment/sync_test.go
if !test.wasntUpdated[rs.Name] { nameToSize[rs.Name] = *(rs.Spec.Replicas) } } if test.expectedNew != nil && test.newRS != nil && *(test.expectedNew.Spec.Replicas) != nameToSize[test.newRS.Name] { t.Errorf("%s: expected new replicas: %d, got: %d", test.name, *(test.expectedNew.Spec.Replicas), nameToSize[test.newRS.Name]) return } if len(test.expectedOld) != len(test.oldRSs) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 08 09:10:50 UTC 2023 - 21.1K bytes - Viewed (0)