Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 325 for fuzz (0.04 sec)

  1. 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)
  2. src/cmd/go/testdata/script/test2json_interrupt.txt

    [short] skip 'links and runs a test binary'
    [!fuzz] skip 'tests SIGINT behavior for interrupting fuzz tests'
    [GOOS:windows] skip 'windows does not support os.Interrupt'
    
    ? go test -json -fuzz FuzzInterrupt -run '^$' -parallel 1
    stdout -count=1 '"Action":"pass","Package":"example","Test":"FuzzInterrupt"'
    stdout -count=1 '"Action":"pass","Package":"example","Elapsed":'
    
    mkdir $WORK/fuzzcache
    go test -c . -fuzz=. -o example_test.exe
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 08 03:52:44 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  3. security/pkg/server/ca/fuzz_test.go

    	"testing"
    
    	pb "istio.io/api/security/v1alpha1"
    	"istio.io/istio/pkg/fuzz"
    	"istio.io/istio/pkg/security"
    	mockca "istio.io/istio/security/pkg/pki/ca/mock"
    	caerror "istio.io/istio/security/pkg/pki/error"
    )
    
    func FuzzCreateCertificate(f *testing.F) {
    	fuzz.Fuzz(f, func(fg fuzz.Helper) {
    		csr := fuzz.Struct[pb.IstioCertificateRequest](fg)
    		ca := fuzz.Struct[mockca.FakeCA](fg)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 15 21:32:54 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/test_fuzz_minimize_interesting.txt

    # functions called by testing or internal/fuzz in the background.
    
    go test -c -fuzz=.  # Build using shared build cache for speed.
    env GOCACHE=$WORK/gocache
    exec ./fuzz.test$GOEXE -test.fuzzcachedir=$GOCACHE/fuzz -test.fuzz=FuzzMinCache -test.fuzztime=1000x
    go run check_cache/check_cache.go $GOCACHE/fuzz/FuzzMinCache
    
    # Test that minimization occurs for a crash that appears while minimizing a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  5. pkg/apis/admissionregistration/fuzzer/fuzzer.go

    	return []interface{}{
    		func(obj *admissionregistration.Rule, c fuzz.Continue) {
    			c.FuzzNoCustom(obj) // fuzz self without calling this function again
    			if obj.Scope == nil {
    				s := admissionregistration.AllScopes
    				obj.Scope = &s
    			}
    		},
    		func(obj *admissionregistration.ValidatingWebhook, c fuzz.Continue) {
    			c.FuzzNoCustom(obj) // fuzz self without calling this function again
    			if obj.FailurePolicy == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 20 16:30:09 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. pilot/pkg/config/kube/gateway/fuzz_test.go

    // limitations under the License.
    
    package gateway
    
    import (
    	"testing"
    
    	"istio.io/istio/pkg/fuzz"
    )
    
    func FuzzConvertResources(f *testing.F) {
    	fuzz.Fuzz(f, func(fg fuzz.Helper) {
    		r := fuzz.Struct[GatewayResources](fg)
    		convertResources(r)
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 25 15:27:36 UTC 2023
    - 802 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/test_fuzz_chatty.txt

    stdout 'this is bad'
    
    # Run skipped chatty fuzz targets.
    go test -v chatty_skipped_fuzz_test.go
    stdout ok
    stdout SKIP
    ! stdout FAIL
    
    # Run successful chatty fuzz targets.
    go test -v chatty_fuzz_test.go
    stdout ok
    stdout PASS
    stdout 'all good here'
    ! stdout FAIL
    
    # Fuzz successful chatty fuzz target that includes a separate unit test.
    go test -v chatty_with_test_fuzz_test.go -fuzz=Fuzz -fuzztime=1x
    stdout ok
    stdout PASS
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/kube/controller/fuzz_test.go

    	"testing"
    
    	corev1 "k8s.io/api/core/v1"
    	v1 "k8s.io/api/discovery/v1"
    
    	"istio.io/istio/pilot/pkg/model"
    	"istio.io/istio/pkg/fuzz"
    	"istio.io/istio/pkg/network"
    )
    
    func FuzzKubeController(f *testing.F) {
    	fuzz.Fuzz(f, func(fg fuzz.Helper) {
    		networkID := network.ID("fakeNetwork")
    		fco := fuzz.Struct[FakeControllerOptions](fg)
    		fco.SkipRun = true
    		// Overlapping CRDs would fail, just remove them
    		fco.CRDs = nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 26 03:41:41 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/go/testdata/script/test_fuzz_fuzztime.txt

    go test -timeout=3s -fuzz=FuzzFast -fuzztime=5s
    
    # We should see the same behavior when invoking the test binary directly.
    go test -c
    exec ./fuzz.test$GOEXE -test.timeout=3s -test.fuzz=FuzzFast -test.fuzztime=5s -test.parallel=1 -test.fuzzcachedir=$WORK/cache
    
    # Timeout should not cause inputs to be written as crashers.
    ! exists testdata/fuzz
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 20:09:52 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top