- Sort Score
- Result 10 results
- Languages All
Results 381 - 390 of 962 for printf (0.14 sec)
-
cmd/erasure-metadata-utils_test.go
func Test_hashOrder(t *testing.T) { for x := 1; x < 17; x++ { t.Run(fmt.Sprintf("%d", x), func(t *testing.T) { var first [17]int rng := rand.New(rand.NewSource(0)) var tmp [16]byte rng.Read(tmp[:]) prefix := hex.EncodeToString(tmp[:]) for i := 0; i < 10000; i++ { rng.Read(tmp[:]) y := hashOrder(fmt.Sprintf("%s/%x", prefix, hex.EncodeToString(tmp[:3])), x) first[y[0]]++ }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 7.4K bytes - Viewed (0) -
cmd/api-headers.go
xxml "github.com/minio/xxml" ) // Returns a hexadecimal representation of time at the // time response is sent to the client. func mustGetRequestID(t time.Time) string { return fmt.Sprintf("%X", t.UnixNano()) } // setEventStreamHeaders to allow proxies to avoid buffering proxy responses func setEventStreamHeaders(w http.ResponseWriter) { w.Header().Set(xhttp.ContentType, "text/event-stream")
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue May 28 04:44:00 UTC 2024 - 7K bytes - Viewed (0) -
cmd/warm-backend-azure.go
if strings.EqualFold(az.StorageClass, string(t)) { return &t } } return nil } func (az *warmBackendAzure) getDest(object string) string { destObj := object if az.Prefix != "" { destObj = fmt.Sprintf("%s/%s", az.Prefix, object) } return destObj } func (az *warmBackendAzure) PutWithMeta(ctx context.Context, object string, r io.Reader, length int64, meta map[string]string) (remoteVersionID, error) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 31 22:10:24 UTC 2024 - 7K bytes - Viewed (0) -
cmd/bitrot.go
for algorithm := range bitrotAlgorithms { if !algorithm.Available() { continue } checksum, err := hex.DecodeString(checksums[algorithm]) if err != nil { logger.Fatal(errSelfTestFailure, fmt.Sprintf("bitrot: failed to decode %v checksum %s for selftest: %v", algorithm, checksums[algorithm], err)) } var ( hash = algorithm.New() msg = make([]byte, 0, hash.Size()*hash.BlockSize())
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jan 30 20:43:25 UTC 2024 - 7.6K bytes - Viewed (0) -
cmd/speedtest.go
errStr = fmt.Sprintf("no results for downloads upon first attempt, concurrency %d and duration %s", opts.concurrencyStart, opts.duration) } // if the default concurrency yields zero results, throw an error. if throughputHighestResults[i].Uploads == 0 && opts.concurrencyStart == concurrency {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon May 06 09:45:10 UTC 2024 - 9.2K bytes - Viewed (0) -
tests/test_custom_swagger_ui_redirect.py
response = client.get("/docs") assert response.status_code == 200, response.text assert response.headers["content-type"] == "text/html; charset=utf-8" assert "swagger-ui-dist" in response.text print(client.base_url) assert ( f"oauth2RedirectUrl: window.location.origin + '{swagger_ui_oauth2_redirect_url}'" in response.text ) def test_swagger_ui_oauth2_redirect():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Apr 08 04:37:38 UTC 2020 - 1.1K bytes - Viewed (0) -
istioctl/pkg/metrics/metrics_test.go
}, }, }, metav1.CreateOptions{}) metricCmd := Cmd(ctx) for i, c := range cases { t.Run(fmt.Sprintf("case %d %s", i, strings.Join(c.Args, " ")), func(t *testing.T) { testutil.VerifyOutput(t, metricCmd, c) }) } } func TestAPI(t *testing.T) { _, _ = prometheusAPI(fmt.Sprintf("http://localhost:%d", 1234)) } var _ promv1.API = mockPromAPI{} func TestPrintMetrics(t *testing.T) {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Aug 16 01:35:47 UTC 2024 - 8K bytes - Viewed (0) -
internal/bucket/lifecycle/delmarker-expiration_test.go
err: nil, }, { xml: `<DelMarkerExpiration> <Days> -1 </Days> </DelMarkerExpiration>`, err: errInvalidDaysDelMarkerExpiration, }, } for i, test := range tests { t.Run(fmt.Sprintf("TestDelMarker-%d", i), func(t *testing.T) { var dexp DelMarkerExpiration var fail bool err := xml.Unmarshal([]byte(test.xml), &dexp) if test.err == nil { if err != nil { fail = true }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 01 01:11:10 UTC 2024 - 1.6K bytes - Viewed (0) -
clause/values_test.go
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 691 bytes - Viewed (0) -
internal/s3select/sql/funceval.go
case float64: return fmt.Sprintf("%v", x), nil case int64: return fmt.Sprintf("%v", x), nil case string: return x, nil case []byte: return string(x), nil case bool: return fmt.Sprintf("%v", x), nil case nil: // FIXME: verify this case is correct return "NULL", nil } // This does not happen return "", errCastFailure(fmt.Sprintf("cannot cast %v to string type", v.GetTypeString()))
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 13.2K bytes - Viewed (0)