Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for cnt (0.01 sec)

  1. src/archive/tar/reader_test.go

    					i, s1, s2, err, v.err)
    			}
    			if cnt != v.cnt {
    				t.Errorf("test %d, NewReader(%s) with %s discard: got %d headers, want %d headers",
    					i, s1, s2, cnt, v.cnt)
    			}
    		}
    	}
    }
    
    // TestReadHeaderOnly tests that Reader does not attempt to read special
    // header-only files.
    func TestReadHeaderOnly(t *testing.T) {
    	f, err := os.Open("testdata/hdr-only.tar")
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  2. cmd/erasure-multipart.go

    			if _, err := fmt.Sscanf(partPath, "part.%d.meta", &partNum); err == nil {
    				partsWithMetaCount[partNum]++
    			}
    		}
    		// Include only part.N.meta files with corresponding part.N
    		for partNum, cnt := range partsWithMetaCount {
    			if cnt < 2 {
    				continue
    			}
    			partQuorumMap[partNum]++
    		}
    	}
    
    	var partNums []int
    	for partNum, count := range partQuorumMap {
    		if count < readQuorum {
    			continue
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
Back to top