Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for deepEqual (0.17 sec)

  1. cmd/bucket-replication.go

    			}
    		}
    		if strings.Join(enc, ",") != oi1.ContentEncoding {
    			return replicateMetadata
    		}
    	}
    
    	t, _ := tags.ParseObjectTags(oi1.UserTags)
    	if (oi2.UserTagCount > 0 && !reflect.DeepEqual(oi2.UserTags, t.ToMap())) || (oi2.UserTagCount != len(t.ToMap())) {
    		return replicateMetadata
    	}
    
    	// Compare only necessary headers
    	compareKeys := []string{
    		"Expires",
    		"Cache-Control",
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  2. cmd/server_test.go

    	*testing.T
    	testType string
    }
    
    // Assert - checks if gotValue is same as expectedValue, if not fails the test.
    func (c *check) Assert(gotValue interface{}, expectedValue interface{}) {
    	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()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  3. 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
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 184.1K bytes
    - Viewed (1)
Back to top