Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 227 for fuzz (1.65 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. pkg/proxy/apis/config/fuzzer/fuzzer.go

    )
    
    // Funcs returns the fuzzer functions for the kube-proxy apis.
    func Funcs(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(obj *kubeproxyconfig.KubeProxyConfiguration, c fuzz.Continue) {
    			c.FuzzNoCustom(obj)
    			obj.BindAddress = fmt.Sprintf("%d.%d.%d.%d", c.Intn(256), c.Intn(256), c.Intn(256), c.Intn(256))
    			obj.ClientConnection.ContentType = c.RandString()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:33:53 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. src/internal/fuzz/mutator_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 (
    	"bytes"
    	"fmt"
    	"os"
    	"strconv"
    	"testing"
    )
    
    func BenchmarkMutatorBytes(b *testing.B) {
    	origEnv := os.Getenv("GODEBUG")
    	defer func() { os.Setenv("GODEBUG", origEnv) }()
    	os.Setenv("GODEBUG", fmt.Sprintf("%s,fuzzseed=123", origEnv))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  9. src/encoding/csv/fuzz_test.go

    // license that can be found in the LICENSE file.
    
    package csv
    
    import (
    	"bytes"
    	"reflect"
    	"slices"
    	"strings"
    	"testing"
    )
    
    func FuzzRoundtrip(f *testing.F) {
    	f.Fuzz(func(t *testing.T, in []byte) {
    		buf := new(bytes.Buffer)
    
    		t.Logf("input = %q", in)
    		for _, tt := range []Reader{
    			{Comma: ','},
    			{Comma: ';'},
    			{Comma: '\t'},
    			{Comma: ',', LazyQuotes: true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 01:26:13 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. tools/golangci-override.yaml

              - "!**/pkg/kube/**"
              - "!**/pkg/url/**"
              - "!**/pkg/test/framework/**"
              - "!**/tests/fuzz/**"
            deny:
              - pkg: istio.io/istio/operator
                desc: "operator should not be imported"
              - pkg: istio.io/istio/istioctl
                desc: "istioctl should not be imported"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top