Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for 10485760 (0.88 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    		{1000, DecimalSI, "1", true},
    		{1234000, DecimalSI, "1234", true},
    		{1024, BinarySI, "1024m", false}, // Format changes
    		{1000000, "invalidFormatDefaultsToExponent", "1e3", true},
    		{1024 * 1024, BinarySI, "1048576m", false}, // Format changes
    	}
    
    	for _, item := range table {
    		q := NewMilliQuantity(item.value, item.format)
    		if e, a := item.expect, q.String(); e != a {
    			t.Errorf("Expected %v, got %v; %#v", e, a, q)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go

    			setMaxElements:   40000,
    			expectedSetCost:  0,
    		},
    		{
    			name:             "map of durations with all",
    			schemaGenerator:  genMapWithRule("duration", "self.all(x, true)"),
    			expectedCalcCost: 1048577,
    			setMaxElements:   5,
    			expectedSetCost:  17,
    		},
    		{
    			name:             "map of durations with has",
    			schemaGenerator:  genMapWithRule("duration", "has(self.x)"),
    			expectedCalcCost: 0,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 51.5K bytes
    - Viewed (0)
Back to top