Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 84 for Equals (0.14 sec)

  1. cmd/object-handlers-common.go

    	// If the object doesn't have a modtime (IsZero), or the modtime
    	// is obviously garbage (Unix time == 0), then ignore modtimes
    	// and don't process the If-Modified-Since header.
    	if objInfo.ModTime.IsZero() || objInfo.ModTime.Equal(time.Unix(0, 0)) {
    		return false
    	}
    
    	// Headers to be set of object content is not going to be written to the client.
    	writeHeaders := func() {
    		// set common headers
    		setCommonHeaders(w)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  2. cmd/update_test.go

    		}
    		tagTime, err := releaseTagToReleaseTime(testCase.tag)
    		if err != nil && err.Error() != testCase.errStr {
    			t.Errorf("Test %d: Expected %v but got %v", i+1, testCase.errStr, err.Error())
    		}
    		if err == nil && !tagTime.Equal(testCase.t) {
    			t.Errorf("Test %d: Expected %v but got %v", i+1, testCase.t, tagTime)
    		}
    	}
    }
    
    func TestDownloadURL(t *testing.T) {
    	sci := globalIsCICD
    	globalIsCICD = false
    	defer func() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-v1.go

    }
    
    // Equal equates current erasure info with newer erasure info.
    // returns false if one of the following check fails
    // - erasure algorithm is different
    // - data blocks are different
    // - parity blocks are different
    // - block size is different
    // - distribution array size is different
    // - distribution indexes are different
    func (ei ErasureInfo) Equal(nei ErasureInfo) bool {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2_test.go

    	failOnErr(err)
    	if len(list) != 2 {
    		t.Fatalf("want 1 entry, got %d", len(list))
    	}
    
    	if !bytes.Equal(xl2.data.find("756100c6-b393-4981-928a-d49bbc164741"), data) {
    		t.Fatal("Find data returned", xl2.data.find("756100c6-b393-4981-928a-d49bbc164741"))
    	}
    	if !bytes.Equal(xl2.data.find(fi.VersionID), data2) {
    		t.Fatal("Find data returned", xl2.data.find(fi.VersionID))
    	}
    
    	// Remove entry
    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)
  5. cmd/signature-v4.go

    		return doesPolicySignatureV2Match(formValues)
    	}
    	return doesPolicySignatureV4Match(formValues)
    }
    
    // compareSignatureV4 returns true if and only if both signatures
    // are equal. The signatures are expected to be HEX encoded strings
    // according to the AWS S3 signature V4 spec.
    func compareSignatureV4(sig1, sig2 string) bool {
    	// The CTC using []byte(str) works because the hex encoding
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  6. cni/pkg/ipset/nldeps_linux.go

    	res, err := netlink.IpsetList(name)
    	if err != nil {
    		return fmt.Errorf("failed to list ipset %s: %w", name, err)
    	}
    
    	var delErrs []error
    
    	for _, entry := range res.Entries {
    		if entry.IP.Equal(delIP) {
    			err := netlink.IpsetDel(name, &entry)
    			if err != nil {
    				delErrs = append(delErrs, fmt.Errorf("failed to delete IP %s from ipset %s: %w", entry.IP, name, err))
    			}
    		}
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  7. src/archive/tar/tar_test.go

    		t.Errorf("Mode = %#o; want %#o", g, e)
    	}
    	if g, e := h.Size, int64(5); g != e {
    		t.Errorf("Size = %v; want %v", g, e)
    	}
    	if g, e := h.ModTime, fi.ModTime(); !g.Equal(e) {
    		t.Errorf("ModTime = %v; want %v", g, e)
    	}
    	// FileInfoHeader should error when passing nil FileInfo
    	if _, err := FileInfoHeader(nil, ""); err == nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  8. cmd/object-handlers_test.go

    		if err != nil {
    			t.Fatalf("Test %d: %s: Failed reading response body: <ERROR> %v", i+1, instanceType, err)
    		}
    
    		if rec.Code == http.StatusOK || rec.Code == http.StatusPartialContent {
    			if !bytes.Equal(testCase.expectedContent, actualContent) {
    				t.Errorf("Test %d: %s: Object content differs from expected value %s, got %s", i+1, instanceType, testCase.expectedContent, string(actualContent))
    			}
    			continue
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  9. cmd/bucket-metadata.go

    	if len(b.TaggingConfigXML) != 0 {
    		b.taggingConfig, err = tags.ParseBucketXML(bytes.NewReader(b.TaggingConfigXML))
    		if err != nil {
    			return err
    		}
    	} else {
    		b.taggingConfig = nil
    	}
    
    	if bytes.Equal(b.ObjectLockConfigXML, enabledBucketObjectLockConfig) {
    		b.VersioningConfigXML = enabledBucketVersioningConfig
    	}
    
    	if len(b.ObjectLockConfigXML) != 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/lifecycle_test.go

    		},
    	}
    
    	for i, tc := range testCases {
    		t.Run(fmt.Sprintf("Test %d", i+1), func(t *testing.T) {
    			got := ExpectedExpiryTime(tc.modTime, int(tc.days))
    			if !got.Equal(tc.expected) {
    				t.Fatalf("Expected %v to be equal to %v", got, tc.expected)
    			}
    		})
    	}
    }
    
    func TestEval(t *testing.T) {
    	testCases := []struct {
    		inputConfig            string
    		objectName             string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
Back to top