- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for deepEqual (0.23 sec)
-
cmd/format-erasure_test.go
} if len(formatV3.Erasure.Sets) != 1 { t.Fatalf("expected single set after migrating from v1 to v3, but found %d", len(formatV3.Erasure.Sets)) } if !reflect.DeepEqual(formatV3.Erasure.Sets[0], m.Erasure.JBOD) { t.Fatalf("expected drive uuid: %v, got: %v", m.Erasure.JBOD, formatV3.Erasure.Sets[0]) } m = &formatErasureV1{} m.Format = "unknown"
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Apr 15 08:25:46 GMT 2024 - 12.9K bytes - Viewed (0) -
istioctl/pkg/workload/workload_test.go
{name: "one-key-only", arg: []string{"key"}, want: map[string]string{"key": ""}}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := convertToStringMap(tt.arg); !reflect.DeepEqual(got, tt.want) { t.Errorf("convertToStringMap() = %v, want %v", got, tt.want) } }) } } func TestSplitEqual(t *testing.T) { tests := []struct { arg string wantKey string
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Mar 27 16:59:05 GMT 2024 - 14.6K bytes - Viewed (0) -
cni/pkg/plugin/plugin_test.go
args: args{ports: []string{"abcd", "2345", "abcd"}}, want: []string{"abcd", "2345"}, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := dedupPorts(tt.args.ports); !reflect.DeepEqual(got, tt.want) { t.Errorf("dedupPorts() = %v, want %v", got, tt.want) } }) }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed May 08 15:58:51 GMT 2024 - 17.5K bytes - Viewed (0) -
src/archive/tar/tar_test.go
} f.pos += s f.ops = f.ops[1:] return f.pos, nil } func equalSparseEntries(x, y []sparseEntry) bool { return (len(x) == 0 && len(y) == 0) || reflect.DeepEqual(x, y) } func TestSparseEntries(t *testing.T) { vectors := []struct { in []sparseEntry size int64 wantValid bool // Result of validateSparseEntries
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 15 16:01:50 GMT 2024 - 24K bytes - Viewed (0) -
cmd/erasure-healing_test.go
} if !reflect.DeepEqual(part1Disk1Origin, partReconstructed) { t.Fatalf("part.1 not healed correctly") } partReconstructed, err = secondDisk.ReadAll(context.Background(), bucket, pathJoin(object, fi.DataDir, "part.1")) if err != nil { t.Fatalf("Failed to read a file - %v", err) } if !reflect.DeepEqual(part1Disk2Origin, partReconstructed) {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed Mar 27 15:10:40 GMT 2024 - 47.6K bytes - Viewed (0) -
operator/cmd/mesh/manifest-generate_test.go
// This one is not a selector, it must be an exact match if sel := mustGetLabels(t, deployment, "spec.selector.matchLabels"); !reflect.DeepEqual(deploymentSelector, sel) { t.Fatalf("Depployment selectors are immutable, but changed since 1.5. Was %v, now is %v", deploymentSelector, sel) } }) }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Apr 18 18:16:49 GMT 2024 - 43.5K bytes - Viewed (0) -
cmd/erasure-sets.go
printEndpointError(endpoint, err, false) disk.Close() s.erasureDisksMu.Unlock() return } if currentDisk := s.erasureDisks[setIndex][diskIndex]; currentDisk != nil { if !reflect.DeepEqual(currentDisk.Endpoint(), disk.Endpoint()) { err = fmt.Errorf("Detected unexpected drive ordering refusing to use the drive: expecting %s, found %s, refusing to use the drive", currentDisk.Endpoint(), disk.Endpoint())
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri May 03 20:08:20 GMT 2024 - 37.7K bytes - Viewed (5) -
cmd/xl-storage-format-v2_test.go
rng.Shuffle(len(test.input), func(i, j int) { test.input[i], test.input[j] = test.input[j], test.input[i] }) got := mergeXLV2Versions(test.quorum, true, 0, test.input...) if !reflect.DeepEqual(test.want, got) { t.Errorf("want %v != got %v", test.want, got) } }) } }) } } func Test_mergeEntryChannels(t *testing.T) {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Mar 08 17:50:48 GMT 2024 - 36.4K bytes - Viewed (0) -
src/archive/tar/common.go
case TypeXGlobalHeader: h2 := Header{Name: h.Name, Typeflag: h.Typeflag, Xattrs: h.Xattrs, PAXRecords: h.PAXRecords, Format: h.Format} if !reflect.DeepEqual(h, h2) { return FormatUnknown, nil, headerError{"only PAXRecords should be set for TypeXGlobalHeader"} } whyOnlyPAX = "only PAX supports TypeXGlobalHeader" format.mayOnlyBe(FormatPAX) }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 15 16:01:50 GMT 2024 - 24.7K bytes - Viewed (2) -
cmd/endpoint.go
func (l EndpointServerPools) GetLocalPoolIdx(ep Endpoint) int { for i, zep := range l { for _, cep := range zep.Endpoints { if cep.IsLocal && ep.IsLocal { if reflect.DeepEqual(cep, ep) { return i } } } } return -1 } // Legacy returns 'true' if the MinIO server commandline was // provided with no ellipses pattern, those are considered
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sun Apr 21 11:43:18 GMT 2024 - 34.1K bytes - Viewed (0)