- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 151 for mustParse (0.3 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go
if r := recover(); r == nil { t.Errorf("MustParse did not panic") } }() _ = MustParse("Non-Numeric") } // TestQuantityAddZeroPreservesSuffix verifies that a suffix is preserved // independent of the order of operations when adding a zero and non-zero val func TestQuantityAddZeroPreservesSuffix(t *testing.T) { testValues := []string{"100m", "1Gi"} zero := MustParse("0") for _, testValue := range testValues {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 49.4K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_manager_test.go
assert.NoError(t, err) cpu100m := resource.MustParse("100m") cpu150m := resource.MustParse("150m") cpu200m := resource.MustParse("200m") cpu250m := resource.MustParse("250m") cpu300m := resource.MustParse("300m") cpu350m := resource.MustParse("350m") mem100M := resource.MustParse("100Mi") mem150M := resource.MustParse("150Mi") mem200M := resource.MustParse("200Mi") mem250M := resource.MustParse("250Mi")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 96K bytes - Viewed (0) -
pkg/registry/core/node/storage/storage_test.go
Name: name, Labels: map[string]string{ "name": name, }, }, Status: api.NodeStatus{ Capacity: api.ResourceList{ api.ResourceCPU: resource.MustParse("10"), api.ResourceMemory: resource.MustParse("0"), }, }, } for _, tweak := range tweaks { tweak(node) } return node } func setNodeIPAddress(addr string) tweak { return func(node *api.Node) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 01 12:49:38 UTC 2023 - 6.8K bytes - Viewed (0) -
pkg/registry/core/persistentvolume/storage/storage_test.go
pv := &api.PersistentVolume{ ObjectMeta: metav1.ObjectMeta{ Name: name, }, Spec: api.PersistentVolumeSpec{ Capacity: api.ResourceList{ api.ResourceName(api.ResourceStorage): resource.MustParse("10G"), }, AccessModes: []api.PersistentVolumeAccessMode{api.ReadWriteOnce}, PersistentVolumeSource: api.PersistentVolumeSource{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 7.4K bytes - Viewed (0) -
pkg/kubelet/eviction/eviction_manager_test.go
default: podStats = newPodMemoryStats(pod, resource.MustParse(memoryWorkingSet)) } return pod, podStats } func makePIDStats(nodeAvailablePIDs string, numberOfRunningProcesses string, podStats map[*v1.Pod]statsapi.PodStats) *statsapi.Summary { val := resource.MustParse(nodeAvailablePIDs) availablePIDs := int64(val.Value()) parsed := resource.MustParse(numberOfRunningProcesses)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 15 23:14:12 UTC 2024 - 119.9K bytes - Viewed (0) -
pkg/kubelet/container/helpers_test.go
assert.Equal(t, result, testCase.expectedResult) }) } } func TestHashContainerWithoutResources(t *testing.T) { cpu100m := resource.MustParse("100m") cpu200m := resource.MustParse("200m") mem100M := resource.MustParse("100Mi") mem200M := resource.MustParse("200Mi") cpuPolicyRestartNotRequired := v1.ContainerResizePolicy{ResourceName: v1.ResourceCPU, RestartPolicy: v1.NotRequired}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 01:55:46 UTC 2024 - 24.5K bytes - Viewed (0) -
pkg/registry/core/persistentvolumeclaim/storage/storage_test.go
AccessModes: []api.PersistentVolumeAccessMode{api.ReadWriteOnce}, Resources: api.VolumeResourceRequirements{ Requests: api.ResourceList{ api.ResourceName(api.ResourceStorage): resource.MustParse("10G"), }, }, }, Status: api.PersistentVolumeClaimStatus{ Phase: api.ClaimPending, }, } return pv } func TestCreate(t *testing.T) { storage, _, server := newStorage(t)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 8.9K bytes - Viewed (0) -
src/go/types/issues_test.go
if obj != want { t.Fatalf("%s.Lookup: got %q (%p); want %q (%p)", it, obj, obj, want, want) } } func TestIssue29029(t *testing.T) { f1 := mustParse(fset, `package p; type A interface { M() }`) f2 := mustParse(fset, `package p; var B interface { A }`) // printInfo prints the *Func definitions recorded in info, one *Func per line. printInfo := func(info *Info) string { var buf strings.Builder
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/issues_test.go
if obj != want { t.Fatalf("%s.Lookup: got %q (%p); want %q (%p)", it, obj, obj, want, want) } } func TestIssue29029(t *testing.T) { f1 := mustParse(`package p; type A interface { M() }`) f2 := mustParse(`package p; var B interface { A }`) // printInfo prints the *Func definitions recorded in info, one *Func per line. printInfo := func(info *Info) string { var buf strings.Builder
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/go/types/example_test.go
func FToC(f float64) Celsius { return Celsius(f - 32 / 9 * 5) } const Boiling Celsius = 100 func Unused() { {}; {{ var x int; _ = x }} } // make sure empty block scopes get printed `, } { files = append(files, mustParse(fset, src)) } // Type-check a package consisting of these files. // Type information for the imported "fmt" package // comes from $GOROOT/pkg/$GOOS_$GOOARCH/fmt.a. conf := types.Config{Importer: importer.Default()}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.9K bytes - Viewed (0)