Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestGetPartSizeFromIdx (0.1 sec)

  1. cmd/xl-storage-format_test.go

    		t.Errorf("jsoniter parsing of XLMeta failed: %v", err)
    	}
    
    	compareXLMetaV1(t, unMarshalXLMeta, jsoniterXLMeta)
    }
    
    // Test the predicted part size from the part index
    func TestGetPartSizeFromIdx(t *testing.T) {
    	// Create test cases
    	testCases := []struct {
    		totalSize    int64
    		partSize     int64
    		partIndex    int
    		expectedSize int64
    	}{
    		// Total size is zero
    		{0, 10, 1, 0},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top