Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 59 of 59 for Equals (0.15 sec)

  1. cmd/xl-storage_test.go

    		if err != testCase.err {
    			t.Errorf("TestXLStorage %d: Expected err \"%v\", got err \"%v\"", i+1, testCase.err, err)
    			continue
    		}
    		if err == nil {
    			if !bytes.Equal(dataRead, []byte("Hello, World")) {
    				t.Errorf("TestXLStorage %d: Expected the data read to be \"%s\", but instead got \"%s\"", i+1, "Hello, World", string(dataRead))
    			}
    		}
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  2. cmd/utils.go

    	globalMaxPartID = 10000
    )
    
    // isMaxObjectSize - verify if max object size
    func isMaxObjectSize(size int64) bool {
    	return size > globalMaxObjectSize
    }
    
    // Check if part size is more than or equal to minimum allowed size.
    func isMinAllowedPartSize(size int64) bool {
    	return size >= globalMinPartSize
    }
    
    // isMaxPartNumber - Check if part ID is greater than the maximum allowed ID.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  3. internal/etag/etag.go

    	v, ok := h["ETag"]
    	if !ok || len(v) == 0 {
    		return nil, errors.New("etag: HTTP header does not contain an ETag")
    	}
    	return parse(v[0], strict)
    }
    
    // Equal returns true if and only if the two ETags are
    // identical.
    func Equal(a, b ETag) bool { return bytes.Equal(a, b) }
    
    // Decrypt decrypts the ETag with the given key.
    //
    // If the ETag is not encrypted, Decrypt returns
    // the ETag unmodified.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. cmd/server-main.go

    			warnings = append(warnings, color.YellowBold("- Strict AWS S3 compatible incoming PUT, POST content payload validation is turned off, caution is advised do not use in production"))
    		}
    	})
    	if globalActiveCred.Equal(auth.DefaultCredentials) {
    		msg := fmt.Sprintf("- Detected default credentials '%s', we recommend that you change these values with 'MINIO_ROOT_USER' and 'MINIO_ROOT_PASSWORD' environment variables",
    			globalActiveCred)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 34.9K bytes
    - Viewed (1)
  9. cmd/admin-handlers-users.go

    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	var expiration *time.Time
    	if !svcAccount.Expiration.IsZero() && !svcAccount.Expiration.Equal(timeSentinel) {
    		expiration = &svcAccount.Expiration
    	}
    
    	infoResp := madmin.InfoServiceAccountResp{
    		ParentUser:    svcAccount.ParentUser,
    		Name:          svcAccount.Name,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 77.5K bytes
    - Viewed (0)
Back to top