Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 129 for fuzz (0.12 sec)

  1. src/testing/fuzz.go

    // F is a type passed to fuzz tests.
    //
    // Fuzz tests run generated inputs against a provided fuzz target, which can
    // find and report potential bugs in the code being tested.
    //
    // A fuzz test runs the seed corpus by default, which includes entries provided
    // by (*F).Add and entries in the testdata/fuzz/<FuzzTestName> directory. After
    // any necessary setup and calls to (*F).Add, the fuzz test must then call
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  2. src/internal/fuzz/fuzz.go

    		if coverageEnabled {
    			fmt.Fprintf(c.opts.Log, "fuzz: elapsed: %s, gathering baseline coverage: %d/%d completed\n", c.elapsed(), runSoFar, c.warmupInputCount)
    		} else {
    			fmt.Fprintf(c.opts.Log, "fuzz: elapsed: %s, testing seed corpus: %d/%d completed\n", c.elapsed(), runSoFar, c.warmupInputCount)
    		}
    	} else if c.crashMinimizing != nil {
    		fmt.Fprintf(c.opts.Log, "fuzz: elapsed: %s, minimizing\n", c.elapsed())
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  3. pkg/apis/core/fuzzer/fuzzer.go

    			}
    		},
    		func(s *core.PodStatus, c fuzz.Continue) {
    			c.Fuzz(&s)
    			s.HostIPs = []core.HostIP{{IP: s.HostIP}}
    		},
    		func(j *core.PodPhase, c fuzz.Continue) {
    			statuses := []core.PodPhase{core.PodPending, core.PodRunning, core.PodFailed, core.PodUnknown}
    			*j = statuses[c.Rand.Intn(len(statuses))]
    		},
    		func(j *core.Binding, c fuzz.Continue) {
    			c.Fuzz(&j.ObjectMeta)
    			j.Target.Name = c.RandString()
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 04:32:01 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/fuzz_test.go

    	"istio.io/istio/pilot/pkg/model"
    	"istio.io/istio/pkg/fuzz"
    )
    
    func FuzzBuildGatewayListeners(f *testing.F) {
    	f.Fuzz(func(t *testing.T, patchCount int, hostname string, data []byte) {
    		defer fuzz.Finalize()
    		fg := fuzz.New(t, data)
    		proxy := fuzz.Struct[*model.Proxy](fg)
    		to := fuzz.Struct[TestOptions](fg)
    		lb := fuzz.Struct[*ListenerBuilder](fg)
    		cg := NewConfigGenTest(t, to)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. tests/fuzz/oss_fuzz_build.sh

    compile_go_fuzzer istio.io/istio/tests/fuzz FuzzInitContext fuzz_init_context
    compile_go_fuzzer istio.io/istio/tests/fuzz FuzzAnalyzer fuzz_analyzer
    compile_go_fuzzer istio.io/istio/tests/fuzz FuzzXds fuzz_xds
    compile_go_fuzzer istio.io/istio/tests/fuzz FuzzCompareDiff fuzz_compare_diff
    compile_go_fuzzer istio.io/istio/tests/fuzz FuzzHelmReconciler fuzz_helm_reconciler
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 15:50:05 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. pkg/apis/batch/fuzzer/fuzzer.go

    	return []interface{}{
    		func(j *batch.Job, c fuzz.Continue) {
    			c.FuzzNoCustom(j) // fuzz self without calling this function again
    
    			// match defaulting
    			if len(j.Labels) == 0 {
    				j.Labels = j.Spec.Template.Labels
    			}
    		},
    		func(j *batch.JobSpec, c fuzz.Continue) {
    			c.FuzzNoCustom(j) // fuzz self without calling this function again
    			completions := int32(c.Rand.Int31())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 17:25:15 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. pilot/pkg/security/authz/builder/fuzz_test.go

    	"testing"
    
    	"istio.io/istio/pilot/pkg/model"
    	"istio.io/istio/pilot/pkg/security/trustdomain"
    	"istio.io/istio/pkg/fuzz"
    )
    
    func FuzzBuildHTTP(f *testing.F) {
    	fuzz.Fuzz(f, func(fg fuzz.Helper) {
    		bundle := fuzz.Struct[trustdomain.Bundle](fg)
    		push := fuzz.Struct[*model.PushContext](fg, validatePush)
    		node := fuzz.Struct[*model.Proxy](fg)
    		selectionOpts := model.PolicyMatcherForProxy(node)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  8. pilot/pkg/networking/util/fuzz_test.go

    	"istio.io/istio/pkg/fuzz"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func FuzzShallowCopyTrafficPolicy(f *testing.F) {
    	fuzz.Fuzz(f, func(fg fuzz.Helper) {
    		r := fuzz.Struct[*networking.TrafficPolicy](fg)
    		copied := ShallowCopyTrafficPolicy(r)
    		assert.Equal(fg.T(), r, copied)
    	})
    }
    
    func FuzzShallowCopyPortTrafficPolicy(f *testing.F) {
    	fuzz.Fuzz(f, func(fg fuzz.Helper) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 20:32:49 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. src/internal/fuzz/encoding_test.go

    byte('☃')`,
    			reject: true,
    		},
    		{
    			desc: "extra newline",
    			in: `go test fuzz v1
    string("has extra newline")
    `,
    			want: `go test fuzz v1
    string("has extra newline")`,
    		},
    		{
    			desc: "trailing spaces",
    			in: `go test fuzz v1
    string("extra")
    []byte("spacing")  
        `,
    			want: `go test fuzz v1
    string("extra")
    []byte("spacing")`,
    		},
    		{
    			desc: "float types",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 00:20:34 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/fuzzer/fuzzer.go

    	return []interface{}{
    		func(q *resource.Quantity, c fuzz.Continue) {
    			*q = *resource.NewQuantity(c.Int63n(1000), resource.DecimalExponent)
    		},
    		func(j *int, c fuzz.Continue) {
    			*j = int(c.Int31())
    		},
    		func(j **int, c fuzz.Continue) {
    			if c.RandBool() {
    				i := int(c.Int31())
    				*j = &i
    			} else {
    				*j = nil
    			}
    		},
    		func(j *runtime.TypeMeta, c fuzz.Continue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 15:12:26 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top