Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 30 for deepEqual (0.22 sec)

  1. internal/bucket/object/lock/lock_test.go

    				"x-amz-object-lock-retain-until-date": "2020-02-01",
    			},
    		},
    	}
    
    	for i, tt := range tests {
    		o := FilterObjectLockMetadata(tt.metadata, tt.filterRetention, tt.filterLegalHold)
    		if !reflect.DeepEqual(o, tt.metadata) {
    			t.Fatalf("Case %d expected %v, got %v", i, tt.metadata, o)
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  2. tests/multi_primary_keys_test.go

    	var tagContents []string
    	for _, tag := range tags {
    		tagContents = append(tagContents, tag.Value)
    	}
    	sort.Strings(tagContents)
    	sort.Strings(contents)
    	return reflect.DeepEqual(tagContents, contents)
    }
    
    func TestManyToManyWithMultiPrimaryKeys(t *testing.T) {
    	if name := DB.Dialector.Name(); name == "sqlite" || name == "sqlserver" {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 12.8K bytes
    - Viewed (0)
  3. 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)
  4. internal/s3select/sql/value.go

    	return
    }
    
    // Equals returns whether the values strictly match.
    // Both type and value must match.
    func (v Value) Equals(b Value) (ok bool) {
    	if !v.SameTypeAs(b) {
    		return false
    	}
    	return reflect.DeepEqual(v.value, b.value)
    }
    
    // SameTypeAs return whether the two types are strictly the same.
    func (v Value) SameTypeAs(b Value) (ok bool) {
    	switch v.value.(type) {
    	case bool:
    		_, ok = b.value.(bool)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  5. internal/s3select/csv/reader_contrib_test.go

    					if err != nil {
    						t.Error(err)
    					}
    				}
    				fields++
    			}
    			r.Close()
    			if err != io.EOF {
    				t.Fatalf("Case %d failed with %s", i, err)
    			}
    			if !reflect.DeepEqual(r.columnNames, c.wantColumns) {
    				t.Errorf("Case %d failed: expected %#v, got result %#v", i, c.wantColumns, r.columnNames)
    			}
    			if result.String() != c.wantTenFields {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 38.5K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/archive/tar/writer_test.go

    		t.Fatal(err)
    	}
    	// Test that we can get the xattrs back out of the archive.
    	reader := NewReader(&buf)
    	hdr, err = reader.Next()
    	if err != nil {
    		t.Fatal(err)
    	}
    	if !reflect.DeepEqual(hdr.Xattrs, xattrs) {
    		t.Fatalf("xattrs did not survive round trip: got %+v, want %+v",
    			hdr.Xattrs, xattrs)
    	}
    }
    
    func TestPaxHeadersSorted(t *testing.T) {
    	fileinfo, err := os.Stat("testdata/small.txt")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
Back to top