- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 47 for Itoa (0.02 sec)
-
tests/preload_test.go
} func TestNestedPreloadWithUnscoped(t *testing.T) { user := *GetUser("nested_preload", Config{Pets: 1}) pet := user.Pets[0] pet.Toy = Toy{Name: "toy_nested_preload_" + strconv.Itoa(1)} pet.Toy = Toy{Name: "toy_nested_preload_" + strconv.Itoa(2)} if err := DB.Create(&user).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } var user2 User
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 12 10:00:47 UTC 2024 - 15.9K bytes - Viewed (0) -
cmd/storage-rest-client.go
values := make(url.Values) values.Set(storageRESTVolume, volume) values.Set(storageRESTFilePath, path) values.Set(storageRESTOffset, strconv.Itoa(int(offset))) values.Set(storageRESTLength, strconv.Itoa(int(length))) respBody, err := client.callGet(ctx, storageRESTMethodReadFileStream, values, nil, -1) if err != nil { return nil, toStorageErr(err) } return respBody, nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Oct 13 13:07:21 UTC 2024 - 30.2K bytes - Viewed (0) -
cmd/generic-handlers_test.go
func generateHeader(size, usersize int) http.Header { header := http.Header{} for i := 0; i < size; i++ { header.Set(strconv.Itoa(i), "") } userlength := 0 for i := 0; userlength < usersize; i++ { userlength += len(userMetadataKeyPrefixes[0] + strconv.Itoa(i)) header.Set(userMetadataKeyPrefixes[0]+strconv.Itoa(i), "") } return header } func TestIsHTTPHeaderSizeTooLarge(t *testing.T) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 5.5K bytes - Viewed (0) -
internal/grid/benchmark_test.go
"strconv" "sync/atomic" "testing" "time" "github.com/minio/minio/internal/logger/target/testlogger" ) func BenchmarkRequests(b *testing.B) { for n := 2; n <= 32; n *= 2 { b.Run("servers="+strconv.Itoa(n), func(b *testing.B) { benchmarkGridRequests(b, n) }) } } func benchmarkGridRequests(b *testing.B, n int) { defer testlogger.T.SetErrorTB(b)() errFatal := func(err error) { b.Helper()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jun 07 15:51:52 UTC 2024 - 15.7K bytes - Viewed (0) -
cmd/bucket-lifecycle-audit.go
} // rule with NewernoncurrentVersions in effect if event.NewerNoncurrentVersions > 0 { tags[ilmNewerNoncurrentVersions] = strconv.Itoa(event.NewerNoncurrentVersions) } if event.NoncurrentDays > 0 { tags[ilmNoncurrentDays] = strconv.Itoa(event.NoncurrentDays) } return tags } func newLifecycleAuditEvent(src lcEventSrc, event lifecycle.Event) lcAuditEvent { return lcAuditEvent{
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 13 22:22:04 UTC 2024 - 2.6K bytes - Viewed (0) -
cmd/healthcheck-handler.go
} result := objLayer.Health(ctx, opts) w.Header().Set(xhttp.MinIOWriteQuorum, strconv.Itoa(result.WriteQuorum)) w.Header().Set(xhttp.MinIOStorageClassDefaults, strconv.FormatBool(result.UsingDefaults)) // return how many drives are being healed if any if result.HealingDrives > 0 { w.Header().Set(xhttp.MinIOHealingDrives, strconv.Itoa(result.HealingDrives)) } if !result.Healthy {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jun 26 07:44:34 UTC 2024 - 6.9K bytes - Viewed (0) -
cmd/object_api_suite_test.go
} for i := 0; i < 10; i++ { randomPerm := rand.Perm(100) randomString := "" for _, num := range randomPerm { randomString += strconv.Itoa(num) } expectedETaghex := getMD5Hash([]byte(randomString)) key := "obj" + strconv.Itoa(i) objects[key] = []byte(randomString) metadata := make(map[string]string) metadata["etag"] = expectedETaghex var objInfo ObjectInfo
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jul 02 15:13:05 UTC 2024 - 33.3K bytes - Viewed (0) -
cmd/erasure-metadata_test.go
fi.Erasure.Index = 1 if !fi.IsValid() { t.Fatalf("unable to get xl meta") } // Test them. for _, testCase := range testCases { if testCase.expectedIndex > -1 { partNumString := strconv.Itoa(testCase.partNum) fi.AddObjectPart(testCase.partNum, "etag."+partNumString, int64(testCase.partNum+humanize.MiByte), ActualSize, UTCNow(), nil, nil) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jul 25 21:02:50 UTC 2024 - 13.5K bytes - Viewed (0) -
cmd/api-headers.go
} // Write parts count func setPartsCountHeaders(w http.ResponseWriter, objInfo ObjectInfo) { if strings.Contains(objInfo.ETag, "-") && len(objInfo.Parts) > 0 { w.Header()[xhttp.AmzMpPartsCount] = []string{strconv.Itoa(len(objInfo.Parts))} } } // Write object header func setObjectHeaders(ctx context.Context, w http.ResponseWriter, objInfo ObjectInfo, rs *HTTPRangeSpec, opts ObjectOptions) (err error) { // set common headers
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue May 28 04:44:00 UTC 2024 - 7K bytes - Viewed (0) -
cmd/peer-rest-client.go
return ch, nil } func (client *peerRESTClient) SpeedTest(ctx context.Context, opts speedTestOpts) (SpeedTestResult, error) { values := make(url.Values) values.Set(peerRESTSize, strconv.Itoa(opts.objectSize)) values.Set(peerRESTConcurrent, strconv.Itoa(opts.concurrency)) values.Set(peerRESTDuration, opts.duration.String()) values.Set(peerRESTStorageClass, opts.storageClass) values.Set(peerRESTBucket, opts.bucketName)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 09 16:58:30 UTC 2024 - 26.1K bytes - Viewed (0)