Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for sub_quantity (0.11 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/library/quantity_test.go

    			expectValue: trueVal,
    		},
    		{
    			name:        "add_int",
    			expr:        `quantity("50k").add(20).isLessThan(quantity("50020"))`,
    			expectValue: falseVal,
    		},
    		{
    			name:        "sub_quantity",
    			expr:        `quantity("50k").sub(quantity("20")) == quantity("49.98k")`,
    			expectValue: trueVal,
    		},
    		{
    			name:        "sub_int",
    			expr:        `quantity("50k").sub(20) == quantity("49980")`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go

    			expectEstimatedCost: checker.CostEstimate{Min: 5, Max: 1844674407370955268},
    			expectRuntimeCost:   5,
    		},
    		{
    			name:                "sub_quantity",
    			expr:                `quantity("50k").sub(quantity("20")) == quantity("49.98k")`,
    			expectEstimatedCost: checker.CostEstimate{Min: 5, Max: 1844674407370955268},
    			expectRuntimeCost:   5,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  3. pkg/volume/emptydir/empty_dir_test.go

    		"tmpfs noswap is supported": {
    			tmpfsNoswapSupported: true,
    		},
    		"size limit is non-zero": {
    			sizeLimit: subQuantity,
    		},
    		"tmpfs noswap is supported and size limit is non-zero": {
    			tmpfsNoswapSupported: true,
    			sizeLimit:            subQuantity,
    		},
    	}
    
    	for testCaseName, testCase := range testCases {
    		t.Run(testCaseName, func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top