- Sort Score
- Result 10 results
- Languages All
Results 41 - 49 of 49 for DeepEqual (0.05 sec)
-
tests/generics_test.go
} var names []string for _, u := range results { names = append(names, u.Name) } sort.Strings(names) expected := []string{"GenericsDistinctDup", "GenericsDistinctUnique"} if !reflect.DeepEqual(names, expected) { t.Errorf("expected names %v, got %v", expected, names) } } func TestGenericsGroupHaving(t *testing.T) { ctx := context.Background() batch := []User{
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Sep 04 13:13:16 UTC 2025 - 28K bytes - Viewed (0) -
src/archive/tar/tar_test.go
t.Fatalf("tw.Close: %v", err) } // Read it back. tr := NewReader(&b) rHdr, err := tr.Next() if err != nil { t.Fatalf("tr.Next: %v", err) } if !reflect.DeepEqual(rHdr, hdr) { t.Errorf("Header mismatch.\n got %+v\nwant %+v", rHdr, hdr) } rData, err := io.ReadAll(tr) if err != nil { t.Fatalf("Read: %v", err) } if !bytes.Equal(rData, data) {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Thu Jul 25 00:25:45 UTC 2024 - 23.9K 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) }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Sep 13 21:03:27 UTC 2024 - 24.5K bytes - Viewed (0) -
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
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 34.4K bytes - Viewed (0) -
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) {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 37.8K bytes - Viewed (0) -
cmd/bucket-replication.go
return replicateMetadata } } t, _ := tags.ParseObjectTags(oi1.UserTags) oi2Map := make(map[string]string) maps.Copy(oi2Map, oi2.UserTags) if (oi2.UserTagCount > 0 && !reflect.DeepEqual(oi2Map, t.ToMap())) || (oi2.UserTagCount != len(t.ToMap())) { return replicateMetadata } // Compare only necessary headers compareKeys := []string{ "Expires", "Cache-Control",
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 118K bytes - Viewed (0) -
cmd/server_test.go
type check struct { *testing.T testType string } // Assert - checks if gotValue is same as expectedValue, if not fails the test. func (c *check) Assert(gotValue any, expectedValue any) { c.Helper() if !reflect.DeepEqual(gotValue, expectedValue) { c.Fatalf("Test %s expected %v, got %v", c.testType, expectedValue, gotValue) } } func verifyError(c *check, response *http.Response, code, description string, statusCode int) { c.Helper()
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 118.1K bytes - Viewed (0) -
cmd/site-replication.go
if err != nil { return errSRPeerResp(fmt.Errorf("unable to fetch IDP settings from %s: %v", v.Name, err)) } s = append(s, is) } for i := 1; i < len(s); i++ { if !reflect.DeepEqual(s[i], s[0]) { return errSRIAMConfigMismatch(peers[0].Name, peers[i].Name, s[0], s[i]) } } return nil } // Netperf for site-replication net perf
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 184.7K bytes - Viewed (0) -
api/go1.txt
pkg reflect, const UnsafePointer Kind pkg reflect, func Append(Value, ...Value) Value pkg reflect, func AppendSlice(Value, Value) Value pkg reflect, func Copy(Value, Value) int pkg reflect, func DeepEqual(interface{}, interface{}) bool pkg reflect, func Indirect(Value) Value pkg reflect, func MakeChan(Type, int) Value pkg reflect, func MakeMap(Type) Value pkg reflect, func MakeSlice(Type, int, int) Value
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)