Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for nilChance (0.2 sec)

  1. pkg/kubelet/server/stats/summary_test.go

    }
    
    func getFsStats() *statsapi.FsStats {
    	f := fuzz.New().NilChance(0)
    	v := &statsapi.FsStats{}
    	f.Fuzz(v)
    	return v
    }
    
    func getContainerStats() *statsapi.ContainerStats {
    	f := fuzz.New().NilChance(0)
    	v := &statsapi.ContainerStats{}
    	f.Fuzz(v)
    	return v
    }
    func getVolumeCPUAndMemoryStats() *statsapi.ContainerStats {
    	f := fuzz.New().NilChance(0)
    	v := &statsapi.ContainerStats{}
    	f.Fuzz(&v.Name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  2. pkg/kubelet/server/stats/summary_windows_test.go

    	assert.Equal(summary.Pods, podStats)
    }
    
    func getFsStats() *statsapi.FsStats {
    	f := fuzz.New().NilChance(0)
    	v := &statsapi.FsStats{}
    	f.Fuzz(v)
    	return v
    }
    
    func getContainerStats() *statsapi.ContainerStats {
    	f := fuzz.New().NilChance(0)
    	v := &statsapi.ContainerStats{}
    	f.Fuzz(v)
    	return v
    }
    
    func getPodStats() *statsapi.PodStats {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation_test.go

    			if c.RandBool() {
    				*vv = &NestedValueValidation{}
    			}
    		},
    		func(vv *NestedValueValidation, c fuzz.Continue) {
    			if c.RandBool() {
    				*vv = NestedValueValidation{}
    			}
    		},
    	)
    	fuzzer.NilChance(0)
    
    	// check that type must be object
    	typeNames := []string{"object", "array", "number", "integer", "boolean", "string"}
    	for _, typeName := range typeNames {
    		s := Structural{
    			Generic: Generic{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 18:20:00 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. pkg/api/testing/defaulting_test.go

    		{Group: "flowcontrol.apiserver.k8s.io", Version: "v1", Kind: "PriorityLevelConfigurationList"}:             {},
    	}
    
    	f := fuzz.New().NilChance(.5).NumElements(1, 1).RandSource(rand.NewSource(1))
    	f.Funcs(
    		func(s *runtime.RawExtension, c fuzz.Continue) {},
    		func(s *metav1.LabelSelector, c fuzz.Continue) {
    			c.FuzzNoCustom(s)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  5. pkg/kubelet/stats/provider_test.go

    		InodesUsed:     &inodesUsed,
    	}
    	return statsapi.VolumeStats{
    		FsStats: fsStats,
    		Name:    volumeName,
    	}
    }
    
    func generateCustomMetricSpec() []cadvisorapiv1.MetricSpec {
    	f := fuzz.New().NilChance(0).Funcs(
    		func(e *cadvisorapiv1.MetricSpec, c fuzz.Continue) {
    			c.Fuzz(&e.Name)
    			switch c.Intn(3) {
    			case 0:
    				e.Type = cadvisorapiv1.MetricGauge
    			case 1:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20K bytes
    - Viewed (0)
  6. pilot/pkg/model/virtualservice_test.go

    			}
    		})
    	}
    }
    
    // Note: this is to prevent missing merge new added HTTPRoute fields
    func TestFuzzMergeHttpRoute(t *testing.T) {
    	f := fuzz.New().NilChance(0.5).NumElements(0, 1).Funcs(
    		func(r *networking.HTTPRoute, c fuzz.Continue) {
    			c.FuzzNoCustom(r)
    			r.Match = []*networking.HTTPMatchRequest{{}}
    			r.Route = nil
    			r.Redirect = nil
    			r.Delegate = nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 60.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/handler_test.go

    }
    
    func fuzzAPIGroups(atLeastNumGroups, maxNumGroups int, seed int64) apidiscoveryv2.APIGroupDiscoveryList {
    	fuzzer := fuzz.NewWithSeed(seed)
    	fuzzer.NumElements(atLeastNumGroups, maxNumGroups)
    	fuzzer.NilChance(0)
    	fuzzer.Funcs(func(o *apidiscoveryv2.APIGroupDiscovery, c fuzz.Continue) {
    		c.FuzzNoCustom(o)
    
    		// The ResourceManager will just not serve the group if its versions
    		// list is empty
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 00:29:39 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	if err == nil || !errors.IsAlreadyExists(err) {
    		t.Error("Expected already exists error")
    	}
    }
    
    func TestNewCreateOptionsFromUpdateOptions(t *testing.T) {
    	f := fuzz.New().NilChance(0.0).NumElements(1, 1)
    
    	// The goal here is to trigger when any changes are made to either
    	// CreateOptions or UpdateOptions types, so we can update the converter.
    	for i := 0; i < 20; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation_test.go

    	seed := int64(5577006791947779410)
    	f := fuzzer.FuzzerFor(fuzzerFuncs, rand.NewSource(seed), codecs)
    	// fuzz internal types
    	schema := &apiextensions.JSONSchemaProps{}
    	f.NilChance(0).NumElements(10, 10).MaxDepth(10).Fuzz(schema)
    
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		if SchemaHas(schema, func(_ *apiextensions.JSONSchemaProps) bool {
    			return false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 349.4K bytes
    - Viewed (0)
Back to top