Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMigrateSizeHistogramFromV1 (0.36 sec)

  1. cmd/data-usage-cache_test.go

    			for k := range got {
    				if _, ok := exp[k]; !ok && got[k] > 0 {
    					t.Fatalf("Unexpected interval: %s has value %d\n", k, got[k])
    				}
    			}
    		})
    	}
    }
    
    func TestMigrateSizeHistogramFromV1(t *testing.T) {
    	tests := []struct {
    		v    sizeHistogramV1
    		want sizeHistogram
    	}{
    		{
    			v:    sizeHistogramV1{0: 10, 1: 20, 2: 3},
    			want: sizeHistogram{0: 10, 5: 20, 6: 3},
    		},
    		{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jan 13 07:51:08 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top