Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Pytest (0.35 sec)

  1. cmd/server_test.go

    		buffer.WriteString(data)
    	}
    	// String content which is used for put object range test.
    	putBytes := buffer.Bytes()
    	putBytes = putBytes[:randInt]
    	// randomize the order of bytes in the byte array and create a reader.
    	putBytes = randomizeBytes(putBytes, -1)
    	buf := bytes.NewReader(putBytes)
    	putContent := string(putBytes)
    	objectName := "test-big-file"
    	// HTTP request to upload the object.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  2. cmd/metrics-v2.go

    	freeBytes       MetricName = "free_bytes"
    	readBytes       MetricName = "read_bytes"
    	rcharBytes      MetricName = "rchar_bytes"
    	receivedBytes   MetricName = "received_bytes"
    	latencyMilliSec MetricName = "latency_ms"
    	sentBytes       MetricName = "sent_bytes"
    	totalBytes      MetricName = "total_bytes"
    	usedBytes       MetricName = "used_bytes"
    	writeBytes      MetricName = "write_bytes"
    	wcharBytes      MetricName = "wchar_bytes"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  3. cmd/object-handlers.go

    						w.Header().Set(xhttp.ContentLength, strconv.FormatInt(rangeLen, 10))
    						if rs != nil {
    							contentRange := fmt.Sprintf("bytes %d-%d/%d", start, start+rangeLen-1, ci.Size)
    							w.Header().Set(xhttp.ContentRange, contentRange)
    						}
    
    						io.Copy(w, bytes.NewReader(ci.Data))
    						return
    					}
    					if ci.StatusCode == http.StatusPreconditionFailed {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  4. cmd/data-usage-cache_gen.go

    			bts, err = msgp.Skip(bts)
    			if err != nil {
    				err = msgp.WrapError(err)
    				return
    			}
    		}
    	}
    	o = bts
    	return
    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z *allTierStats) Msgsize() (s int) {
    	s = 1 + 3 + msgp.MapHeaderSize
    	if z.Tiers != nil {
    		for za0001, za0002 := range z.Tiers {
    			_ = za0002
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 100.8K bytes
    - Viewed (0)
  5. cmd/site-replication.go

    			sm.ActiveWorkers.Max += peer.ActiveWorkers.Max
    		}
    		sm.Queued.Avg.Bytes += peer.Queued.Avg.Bytes
    		sm.Queued.Avg.Count += peer.Queued.Avg.Count
    		sm.Queued.Curr.Bytes += peer.Queued.Curr.Bytes
    		sm.Queued.Curr.Count += peer.Queued.Curr.Count
    		if peer.Queued.Max.Count > sm.Queued.Max.Count {
    			sm.Queued.Max.Bytes = peer.Queued.Max.Bytes
    			sm.Queued.Max.Count = peer.Queued.Max.Count
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  6. cmd/storage-datatypes_gen.go

    		default:
    			bts, err = msgp.Skip(bts)
    			if err != nil {
    				err = msgp.WrapError(err)
    				return
    			}
    		}
    	}
    	o = bts
    	return
    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z BaseOptions) Msgsize() (s int) {
    	s = 1
    	return
    }
    
    // DecodeMsg implements msgp.Decodable
    func (z *CheckPartsHandlerParams) DecodeMsg(dc *msgp.Reader) (err error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 127.5K bytes
    - Viewed (0)
  7. cmd/bucket-replication.go

    		}
    		return
    	}
    	defer gr.Close()
    
    	objInfo := gr.ObjInfo
    
    	// make sure we have the latest metadata for metrics calculation
    	rinfo.PrevReplicationStatus = objInfo.TargetReplicationStatus(tgt.ARN)
    
    	// use latest ObjectInfo to check if previous replication attempt succeeded
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  8. cmd/object-handlers_test.go

    				fmt.Sprintf("bytes=%d-%d", 0, 0),
    				// Read second byte of object
    				fmt.Sprintf("bytes=%d-%d", 1, 1),
    				// Read last byte of object
    				fmt.Sprintf("bytes=-%d", 1),
    				// Read all but first byte of object
    				"bytes=1-",
    				// Read first half of object
    				fmt.Sprintf("bytes=%d-%d", 0, objLen/2),
    				// Read last half of object
    				fmt.Sprintf("bytes=-%d", objLen/2),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
Back to top