Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 325 for fuzz (0.09 sec)

  1. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_fuzz.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package v1
    
    import (
    	"time"
    
    	fuzz "github.com/google/gofuzz"
    )
    
    // Fuzz satisfies fuzz.Interface.
    func (t *Time) Fuzz(c fuzz.Continue) {
    	if t == nil {
    		return
    	}
    	// Allow for about 1000 years of randomness.  Leave off nanoseconds
    	// because JSON doesn't represent them so they can't round-trip
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1K bytes
    - Viewed (0)
  2. pkg/apis/apps/fuzzer/fuzzer.go

    			}
    		},
    		func(j *apps.Deployment, c fuzz.Continue) {
    			c.FuzzNoCustom(j)
    
    			// match defaulting
    			if j.Spec.Selector == nil {
    				j.Spec.Selector = &metav1.LabelSelector{MatchLabels: j.Spec.Template.Labels}
    			}
    			if len(j.Labels) == 0 {
    				j.Labels = j.Spec.Template.Labels
    			}
    		},
    		func(j *apps.DeploymentSpec, c fuzz.Continue) {
    			c.FuzzNoCustom(j) // fuzz self without calling this function again
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  3. tests/fuzz/misc_fuzzers.go

    // parts of Istio. They are placed here because it does not
    // make sense to place them in different files yet.
    // The fuzzers can be moved to other files without anything
    // breaking on the OSS-fuzz side.
    
    package fuzz
    
    import (
    	fuzz "github.com/AdaLogics/go-fuzz-headers"
    
    	"istio.io/api/operator/v1alpha1"
    	"istio.io/istio/operator/pkg/apis/istio"
    	"istio.io/istio/operator/pkg/apis/istio/v1alpha1/validation"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 23 02:26:59 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  4. pkg/apis/autoscaling/fuzzer/fuzzer.go

    		func(s *autoscaling.ScaleStatus, c fuzz.Continue) {
    			c.FuzzNoCustom(s) // fuzz self without calling this function again
    
    			// ensure we have a valid selector
    			metaSelector := &metav1.LabelSelector{}
    			c.Fuzz(metaSelector)
    			labelSelector, _ := metav1.LabelSelectorAsSelector(metaSelector)
    			s.Selector = labelSelector.String()
    		},
    		func(s *autoscaling.HorizontalPodAutoscalerSpec, c fuzz.Continue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 15 06:03:59 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_fuzz.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package v1
    
    import (
    	"time"
    
    	fuzz "github.com/google/gofuzz"
    )
    
    // Fuzz satisfies fuzz.Interface.
    func (t *MicroTime) Fuzz(c fuzz.Continue) {
    	if t == nil {
    		return
    	}
    	// Allow for about 1000 years of randomness. Accurate to a tenth of
    	// micro second. Leave off nanoseconds because JSON doesn't
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/test_fuzz_non_crash_signal.txt

    # We should not save a crasher.
    ! go test -fuzz=FuzzKill
    ! exists testdata
    ! stdout unreachable
    ! stderr unreachable
    stdout 'fuzzing process terminated by unexpected signal; no crash will be recorded: signal: killed'
    
    # FuzzCrash sends itself a signal that looks like a crash.
    # We should save a crasher.
    ! go test -fuzz=FuzzCrash
    exists testdata/fuzz/FuzzCrash
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. pkg/apis/certificates/fuzzer/fuzzer.go

    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(obj *certificates.CertificateSigningRequestSpec, c fuzz.Continue) {
    			c.FuzzNoCustom(obj) // fuzz self without calling this function again
    			obj.Usages = []certificates.KeyUsage{certificates.UsageKeyEncipherment}
    			obj.SignerName = "example.com/custom-sample-signer"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 02 03:38:15 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/fuzzer/fuzzer.go

    				c.Fuzz(obj.Schema)
    			} else {
    				obj.JSONSchemas = make([]apiextensions.JSONSchemaProps, c.Intn(3)+1)
    				for i := range obj.JSONSchemas {
    					c.Fuzz(&obj.JSONSchemas[i])
    				}
    			}
    		},
    		func(obj *apiextensions.JSONSchemaPropsOrStringArray, c fuzz.Continue) {
    			if c.RandBool() {
    				obj.Schema = &apiextensions.JSONSchemaProps{}
    				c.Fuzz(obj.Schema)
    			} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. pkg/config/validation/fuzz_test.go

    // limitations under the License.
    
    package validation
    
    import (
    	"testing"
    
    	"istio.io/istio/pkg/fuzz"
    )
    
    func FuzzValidateHeaderValue(f *testing.F) {
    	fuzz.Fuzz(f, func(fg fuzz.Helper) {
    		r := fuzz.Struct[string](fg)
    		validateHeaderValue(r)
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 15 21:37:52 UTC 2023
    - 801 bytes
    - Viewed (0)
  10. pkg/apis/flowcontrol/fuzzer/fuzzer.go

    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(obj *flowcontrol.LimitedPriorityLevelConfiguration, c fuzz.Continue) {
    			c.FuzzNoCustom(obj) // fuzz self without calling this function again
    
    			// NOTE: setting a zero value here will cause the roundtrip
    			// test (from internal to v1beta2, v1beta1) to fail
    			if obj.NominalConcurrencyShares == 0 {
    				obj.NominalConcurrencyShares = int32(1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top