Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 312 for buzz (0.06 sec)

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

    				t.Errorf("Failed equality test for '%v': expected %+v, got %+v", c.x, c.result, result)
    			}
    		})
    	}
    }
    
    func TestTimeRoundtripCBOR(t *testing.T) {
    	fuzzer := fuzz.New()
    	for i := 0; i < 500; i++ {
    		var initial, final Time
    		fuzzer.Fuzz(&initial)
    		b, err := cbor.Marshal(initial)
    		if err != nil {
    			t.Errorf("error encoding %v: %v", initial, err)
    			continue
    		}
    		err = cbor.Unmarshal(b, &final)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. pkg/controller/apis/config/fuzzer/fuzzer.go

    // Funcs returns the fuzzer functions for the kube-controller manager apis.
    func Funcs(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(obj *kubectrlmgrconfig.KubeControllerManagerConfiguration, c fuzz.Continue) {
    			c.FuzzNoCustom(obj)
    			obj.Generic.Address = fmt.Sprintf("%d.%d.%d.%d", c.Intn(256), c.Intn(256), c.Intn(256), c.Intn(256))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 25 09:31:47 UTC 2018
    - 1.9K bytes
    - Viewed (0)
  3. src/runtime/debug/mod_test.go

    	f.Add(strip(`
    		go	1.18
    		path	example.com/m
    		build	-compiler=gc
    		`))
    
    	// Escaped build info.
    	f.Add(strip(`
    		go 1.18
    		path example.com/m
    		build CRAZY_ENV="requires\nescaping"
    		`))
    
    	f.Fuzz(func(t *testing.T, s string) {
    		bi, err := debug.ParseBuildInfo(s)
    		if err != nil {
    			// Not a round-trippable BuildInfo string.
    			t.Log(err)
    			return
    		}
    
    		// s2 could have different escaping from s.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 09 19:44:03 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  4. src/internal/zstd/xxhash_test.go

    	}
    	f.Add(bytes.Repeat([]byte("abcdefghijklmnop"), 256))
    	var buf bytes.Buffer
    	for i := 0; i < 256; i++ {
    		buf.WriteByte(byte(i))
    	}
    	f.Add(bytes.Repeat(buf.Bytes(), 64))
    	f.Add(bigData(f))
    
    	f.Fuzz(func(t *testing.T, b []byte) {
    		cmd := exec.Command(xxhsum, "-H64")
    		cmd.Stdin = bytes.NewReader(b)
    		var hhsumHash bytes.Buffer
    		cmd.Stdout = &hhsumHash
    		if err := cmd.Run(); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:34:06 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. pkg/api/testing/serialization_test.go

    func fuzzInternalObject(t *testing.T, forVersion schema.GroupVersion, item runtime.Object, seed int64) runtime.Object {
    	fuzzer.FuzzerFor(FuzzerFuncs, rand.NewSource(seed), legacyscheme.Codecs).Fuzz(item)
    
    	j, err := meta.TypeAccessor(item)
    	if err != nil {
    		t.Fatalf("Unexpected error %v for %#v", err, item)
    	}
    	j.SetKind("")
    	j.SetAPIVersion("")
    
    	return item
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/handler_test.go

    	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
    		atLeastOne := apidiscoveryv2.APIVersionDiscovery{}
    		c.Fuzz(&atLeastOne)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 00:29:39 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  7. src/internal/fuzz/queue_test.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package fuzz
    
    import "testing"
    
    func TestQueue(t *testing.T) {
    	// Zero valued queue should have 0 length and capacity.
    	var q queue
    	if n := q.len; n != 0 {
    		t.Fatalf("empty queue has len %d; want 0", n)
    	}
    	if n := q.cap(); n != 0 {
    		t.Fatalf("empty queue has cap %d; want 0", n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 02 17:58:51 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  8. pilot/pkg/model/service_test.go

    			"cluster2": {"10.10.0.2"},
    		},
    	}
    	for n := 0; n < b.N; n++ {
    		_ = svc1.DeepCopy()
    	}
    }
    
    func TestFuzzServiceDeepCopy(t *testing.T) {
    	fuzzer := fuzz.New()
    	originalSvc := &Service{}
    	fuzzer.Fuzz(originalSvc)
    	copied := originalSvc.DeepCopy()
    	opts := []cmp.Option{cmp.AllowUnexported(), cmpopts.IgnoreFields(AddressMap{}, "mutex")}
    	if !cmp.Equal(originalSvc, copied, opts...) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. src/cmd/go/internal/envcmd/env_test.go

    	f.Add("''")
    	f.Add(`C:\"Program Files"\`)
    	f.Add(`\\"Quoted Host"\\share`)
    	f.Add("\xfb")
    	f.Add("0")
    	f.Add("")
    	f.Add("''''''''")
    	f.Add("\r")
    	f.Add("\n")
    	f.Add("E,%")
    	f.Fuzz(func(t *testing.T, s string) {
    		t.Parallel()
    
    		for _, c := range []byte(s) {
    			if c == 0 {
    				t.Skipf("skipping %q: contains a null byte. Null bytes can't occur in the environment"+
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. src/compress/gzip/fuzz_test.go

    		if strings.HasPrefix(de.Name(), ".base64") {
    			b, err = base64.StdEncoding.DecodeString(string(b))
    			if err != nil {
    				f.Fatalf("failed to decode base64 testdata: %s", err)
    			}
    		}
    
    		f.Add(b)
    	}
    
    	f.Fuzz(func(t *testing.T, b []byte) {
    		for _, multistream := range []bool{true, false} {
    			r, err := NewReader(bytes.NewBuffer(b))
    			if err != nil {
    				continue
    			}
    
    			r.Multistream(multistream)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 13 18:06:33 UTC 2022
    - 2.5K bytes
    - Viewed (0)
Back to top