- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for 12Mi (0.03 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) -
src/cmd/compile/internal/syntax/scanner_test.go
{FloatLit, "0p0", "0p0", "'p' exponent requires hexadecimal mantissa"}, {FloatLit, "1.0P-1", "1.0P-1", "'P' exponent requires hexadecimal mantissa"}, {ImagLit, "0.i", "0.i", ""}, {ImagLit, ".123i", ".123i", ""}, {ImagLit, "123.123i", "123.123i", ""}, {ImagLit, "123e+0i", "123e+0i", ""}, {ImagLit, "123.E-10i", "123.E-10i", ""}, {ImagLit, ".123E+10i", ".123E+10i", ""}, // hexadecimals {IntLit, "0x0", "0x0", ""},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 14 16:11:21 UTC 2022 - 21.9K bytes - Viewed (0) -
src/go/scanner/scanner_test.go
{token.FLOAT, "1.0P-1", "1.0P-1", "'P' exponent requires hexadecimal mantissa"}, {token.IMAG, "0.i", "0.i", ""}, {token.IMAG, ".123i", ".123i", ""}, {token.IMAG, "123.123i", "123.123i", ""}, {token.IMAG, "123e+0i", "123e+0i", ""}, {token.IMAG, "123.E-10i", "123.E-10i", ""}, {token.IMAG, ".123E+10i", ".123E+10i", ""}, // hexadecimals
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 15:38:31 UTC 2023 - 34.6K bytes - Viewed (0) -
src/internal/types/testdata/check/literals.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 02:58:32 UTC 2022 - 2.4K bytes - Viewed (0) -
src/go/constant/value_test.go
`0X_dead_cafe.p-10 = 0xdeadcafe.p-10`, `0x12_34.P1_2_3 = 0x1234.p123`, } var imagTests = []string{ `1_234i = 1234i`, `1_234_567i = 1234567i`, `0.i = 0i`, `123.i = 123i`, `0123.i = 123i`, `0.e+1i = 0i`, `123.E-1_0i = 123e-10i`, `01_23.e123i = 123e123i`, `1e-1000000000i = 0i`, `1e+1000000000i = ?`, `6e5518446744i = ?`, `-6e5518446744i = ?`, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 15.6K bytes - Viewed (0) -
pkg/kubelet/cm/memorymanager/memory_manager_test.go
v1.ResourceCPU: resource.MustParse("1000Mi"), v1.ResourceMemory: resource.MustParse("12Gi"), hugepages1Gi: resource.MustParse("4Gi"), }, Requests: v1.ResourceList{ v1.ResourceCPU: resource.MustParse("1000Mi"), v1.ResourceMemory: resource.MustParse("12Gi"), hugepages1Gi: resource.MustParse("4Gi"), }, }),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 05 13:01:40 UTC 2023 - 70.2K bytes - Viewed (0) -
test/typeparam/issue48191.go
p0 = pi64_1 m5 = map[G1]chan bool{(p2.i8_0 + i8_1 + i8_1 ^ i8_1) * p2.i8_0 / p2.i8_0: m4[p2.i8_0>><-ch2]} return (2.65i - 31.18i) * func(byte, byte) complex128 { return 13.12i - 32.90i + (44.15i - 70.53i - (87.16i*92.67i + (24.18i - 9.13i))) + (func(G1, int16) complex128 { return 55.80i }(G1(30), int16(80)) + 8.48i*79.18i + (37.30i*73.81i + (21.01i - 76.30i)) + func(G3, G2) complex128 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 9.7K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/fp_test.go
c1 := cx128eq_ssa(a, a) c2 := cx128eq_ssa(a, b) c3 := cx128ne_ssa(a, a) c4 := cx128ne_ssa(a, b) expectCx128(t, "sum", sum, 4+8i) expectCx128(t, "diff", diff, 2+4i) expectCx128(t, "prod", prod, -9+12i) expectCx128(t, "quot", quot, 3+0i) expectCx128(t, "neg", neg, -1-2i) expect64(t, "real", r, 1) expect64(t, "imag", i, 2) expectCx128(t, "cnst", cnst, -4+7i) expectTrue(t, fmt.Sprintf("%v==%v", a, a), c1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:54:15 UTC 2022 - 35K bytes - Viewed (0)