Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 325 for fuzz (0.04 sec)

  1. src/cmd/go/testdata/mod/example.com_fuzzfail_v0.2.0.txt

    go 1.18
    -- fuzzfail_test.go --
    package fuzzfail
    
    import "testing"
    
    func FuzzFail(f *testing.F) {
    	f.Fuzz(func(t *testing.T, b []byte) {
    		t.Fatalf("oops: %q", b)
    	})
    }
    -- testdata/fuzz/FuzzFail/bbb0c2d22aa1a24617301566dc7486f8b625d38024603ba62757c1124013b49a --
    go test fuzz v1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 20:43:39 UTC 2021
    - 416 bytes
    - Viewed (0)
  2. pkg/apis/rbac/fuzzer/fuzzer.go

    */
    
    package fuzzer
    
    import (
    	fuzz "github.com/google/gofuzz"
    
    	runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
    	"k8s.io/kubernetes/pkg/apis/rbac"
    )
    
    // Funcs returns the fuzzer functions for the rbac api group.
    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(r *rbac.RoleRef, c fuzz.Continue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 11 07:12:57 UTC 2017
    - 1.6K bytes
    - Viewed (0)
  3. tests/fuzz/bootstrap_fuzzer.go

    // limitations under the License.
    
    // nolint: revive
    package fuzz
    
    import (
    	"os"
    	"time"
    
    	fuzz "github.com/AdaLogics/go-fuzz-headers"
    
    	"istio.io/istio/pilot/pkg/bootstrap"
    	"istio.io/istio/pkg/config/mesh"
    )
    
    func FuzzNewBootstrapServer(data []byte) int {
    	f := fuzz.NewConsumer(data)
    
    	// Create mesh config file
    	meshConfigFile, err := createRandomConfigFile(f)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 20 06:17:08 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/test_fuzz_cov.txt

    [short] skip
    [!fuzz-instrumented] skip
    env GOCACHE=$WORK/cache
    
    # TODO(#51484): enabled debugging info to help diagnose a deadlock in the fuzzer
    env GODEBUG=fuzzdebug=1
    ! go test -fuzz=FuzzCov -v
    ! stderr 'cov instrumentation working'
    
    -- go.mod --
    module test
    
    -- cov_test.go --
    package cov
    
    import "testing"
    
    func FuzzCov(f *testing.F) {
    	f.Fuzz(func(t *testing.T, b []byte) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 787 bytes
    - Viewed (0)
  5. pkg/apis/policy/fuzzer/fuzzer.go

    */
    
    package fuzzer
    
    import (
    	fuzz "github.com/google/gofuzz"
    
    	runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
    	"k8s.io/kubernetes/pkg/apis/policy"
    )
    
    // Funcs returns the fuzzer functions for the policy api group.
    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(s *policy.PodDisruptionBudgetStatus, c fuzz.Continue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 20:44:13 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  6. pkg/api/testing/defaulting_test.go

    	}
    
    	f := fuzz.New().NilChance(.5).NumElements(1, 1).RandSource(rand.NewSource(1))
    	f.Funcs(
    		func(s *runtime.RawExtension, c fuzz.Continue) {},
    		func(s *metav1.LabelSelector, c fuzz.Continue) {
    			c.FuzzNoCustom(s)
    			s.MatchExpressions = nil // need to fuzz this specially
    		},
    		func(s *metav1.ListOptions, c fuzz.Continue) {
    			c.FuzzNoCustom(s)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/v2/conversion_test.go

    			*sa = spec.SchemaOrStringArray{}
    			if c.RandBool() {
    				c.Fuzz(&sa.Schema)
    			} else {
    				c.Fuzz(&sa.Property)
    			}
    			if sa.Schema == nil && len(sa.Property) == 0 {
    				*sa = spec.SchemaOrStringArray{Schema: &spec.Schema{}}
    			}
    		},
    		func(url *spec.SchemaURL, c fuzz.Continue) {
    			*url = spec.SchemaURL("http://url")
    		},
    		func(s *spec.Dependencies, c fuzz.Continue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 14:34:26 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  8. src/internal/fuzz/worker.go

    	}
    	resp.Count = mem.header().count
    	h := sha256.Sum256(entryOut.Data)
    	entryOut.Path = fmt.Sprintf("%x", h[:4])
    	return entryOut, resp, retErr
    }
    
    // fuzz tells the worker to call the fuzz method. See workerServer.fuzz.
    func (wc *workerClient) fuzz(ctx context.Context, entryIn CorpusEntry, args fuzzArgs) (entryOut CorpusEntry, resp fuzzResponse, isInternalError bool, err error) {
    	wc.mu.Lock()
    	defer wc.mu.Unlock()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  9. pkg/apis/discovery/fuzzer/fuzzer.go

    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(obj *discovery.EndpointSlice, c fuzz.Continue) {
    			c.FuzzNoCustom(obj) // fuzz self without calling this function again
    
    			addressTypes := []discovery.AddressType{discovery.AddressTypeIPv4, discovery.AddressTypeIPv6, discovery.AddressTypeFQDN}
    			obj.AddressType = addressTypes[c.Rand.Intn(len(addressTypes))]
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 12 17:03:53 UTC 2019
    - 1.6K bytes
    - Viewed (0)
  10. pkg/apis/storage/fuzzer/fuzzer.go

    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(obj *storage.StorageClass, c fuzz.Continue) {
    			c.FuzzNoCustom(obj) // fuzz self without calling this function again
    			reclamationPolicies := []api.PersistentVolumeReclaimPolicy{api.PersistentVolumeReclaimDelete, api.PersistentVolumeReclaimRetain}
    			obj.ReclaimPolicy = &reclamationPolicies[c.Rand.Intn(len(reclamationPolicies))]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 13:32:38 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top