- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for 12Mi (0.05 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/library/quantity_test.go
func TestQuantity(t *testing.T) { twelveMi := resource.MustParse("12Mi") trueVal := types.Bool(true) falseVal := types.Bool(false) cases := []struct { name string expr string expectValue ref.Val expectedCompileErr []string expectedRuntimeErr string }{ { name: "parse", expr: `quantity("12Mi")`, expectValue: apiservercel.Quantity{Quantity: &twelveMi},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 17:22:44 UTC 2024 - 8.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
} // Format lists the three possible formattings of a quantity. type Format string const ( DecimalExponent = Format("DecimalExponent") // e.g., 12e6 BinarySI = Format("BinarySI") // e.g., 12Mi (12 * 2^20) DecimalSI = Format("DecimalSI") // e.g., 12M (12 * 10^6) ) // MustParse turns the given string into a quantity or panics; for tests // or other cases where you know the string is valid.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 23.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go
name string expr string expectEstimatedCost checker.CostEstimate expectRuntimeCost uint64 }{ { name: "path", expr: `quantity("12Mi")`, expectEstimatedCost: checker.CostEstimate{Min: 1, Max: 1}, expectRuntimeCost: 1, }, { name: "isQuantity", expr: `isQuantity("20")`,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 17:22:44 UTC 2024 - 40.8K bytes - Viewed (0) -
doc/go1.17_spec.html
entirely of decimal digits (and possibly underscores) is considered a decimal integer, even if it starts with a leading <code>0</code>. </p> <pre> 0i 0123i // == 123i for backward-compatibility 0o123i // == 0o123 * 1i == 83i 0xabci // == 0xabc * 1i == 2748i 0.i 2.71828i 1.e+0i 6.67428e-11i 1E6i .25i .12345E+5i
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 211.6K bytes - Viewed (0) -
doc/go_spec.html
entirely of decimal digits (and possibly underscores) is considered a decimal integer, even if it starts with a leading <code>0</code>. </p> <pre> 0i 0123i // == 123i for backward-compatibility 0o123i // == 0o123 * 1i == 83i 0xabci // == 0xabc * 1i == 2748i 0.i 2.71828i 1.e+0i 6.67428e-11i 1E6i .25i .12345E+5i
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 21:07:21 UTC 2024 - 281.5K bytes - Viewed (1)