- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 325 for fuzz (0.04 sec)
-
src/cmd/go/testdata/script/test_fuzz_unsupported.txt
[fuzz] skip ! go test -fuzz=. -fuzztime=1x ! stdout . stderr '^-fuzz flag is not supported on '$GOOS'/'$GOARCH'$' -- go.mod -- module example go 1.18 -- fuzz_test.go -- package example import "testing" func FuzzTrivial(f *testing.F) { f.Fuzz(func(t *testing.T, _ []byte) {})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 20:43:02 UTC 2021 - 283 bytes - Viewed (0) -
cmd/kubeadm/app/apis/kubeadm/fuzzer/fuzzer.go
} func fuzzLocalEtcd(obj *kubeadm.LocalEtcd, c fuzz.Continue) { c.FuzzNoCustom(obj) // Pinning values for fields that get defaults if fuzz value is empty string or nil (thus making the round trip test fail) obj.DataDir = "foo" } func fuzzNetworking(obj *kubeadm.Networking, c fuzz.Continue) { c.FuzzNoCustom(obj)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 13 06:41:07 UTC 2024 - 6.2K bytes - Viewed (0) -
pkg/apis/networking/fuzzer/fuzzer.go
c.FuzzNoCustom(path) // fuzz self without calling this function again pathTypes := []networking.PathType{networking.PathTypeExact, networking.PathTypePrefix, networking.PathTypeImplementationSpecific} path.PathType = &pathTypes[c.Rand.Intn(len(pathTypes))] }, func(p *networking.ServiceBackendPort, c fuzz.Continue) { c.FuzzNoCustom(p) // clear one of the fields if c.RandBool() { p.Name = ""
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:06 UTC 2023 - 4K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_fuzz_mutator_repeat.txt
# The fuzz function writes the crashing input to "want" before exiting. # The fuzzing engine reconstructs the crashing input and saves it to testdata. ! exists want ! go test -fuzz=. -parallel=1 -fuzztime=110x -fuzzminimizetime=10x -v stdout '^\s+fuzzing process hung or terminated unexpectedly: exit status' stdout 'Failing input written to testdata'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 16 16:53:11 UTC 2023 - 2K bytes - Viewed (0) -
pkg/fuzz/util.go
FuzzValidate() bool } // Fuzz is a wrapper around: // // fuzz.BaseCases(f) // f.Fuzz(func(...) { // defer fuzz.Finalizer() // } // // To avoid needing to call BaseCases and Finalize everywhere. func Fuzz(f test.Fuzzer, ff func(fg Helper)) { BaseCases(f) f.Fuzz(func(t *testing.T, data []byte) { defer Finalize() fg := New(t, data) ff(fg) })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Nov 30 15:31:14 UTC 2022 - 3.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation_test.go
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/utils/ptr" fuzz "github.com/google/gofuzz" ) func TestValidateStructuralMetadataInvariants(t *testing.T) { fuzzer := fuzz.New() fuzzer.Funcs( func(s *JSON, c fuzz.Continue) { if c.RandBool() { s.Object = float64(42.0) } }, func(s **StructuralOrBool, c fuzz.Continue) { if c.RandBool() { *s = &StructuralOrBool{} } },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 18:20:00 UTC 2024 - 11.6K bytes - Viewed (0) -
pilot/pkg/model/fuzz_test.go
func FuzzDeepCopyIstioEndpoint(f *testing.F) { fuzzDeepCopy[*IstioEndpoint](f) } type deepCopier[T any] interface { DeepCopy() T } func fuzzDeepCopy[T deepCopier[T]](f test.Fuzzer) { fuzz.Fuzz(f, func(fg fuzz.Helper) { orig := fuzz.Struct[T](fg) copied := orig.DeepCopy() assert.Equal(fg.T(), orig, copied) })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 10 17:36:04 UTC 2023 - 1.3K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_fuzz_dup_cache.txt
[!fuzz] skip [short] skip env GOCACHE=$WORK/cache # This test checks that cached corpus loading properly handles duplicate entries (this can # happen when a f.Add value has a duplicate entry in the cached corpus.) Duplicate entries # should be discarded, and the rest of the cache should be loaded as normal. env GOCACHE=$WORK/cache env GODEBUG=fuzzdebug=1 mkdir -p $GOCACHE/fuzz/fuzztest/FuzzTarget go run ./populate $GOCACHE/fuzz/fuzztest/FuzzTarget
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 16 16:53:11 UTC 2023 - 1K bytes - Viewed (0) -
pilot/pkg/networking/core/envoyfilter/fuzz_test.go
"istio.io/istio/pkg/config/host" "istio.io/istio/pkg/fuzz" ) func FuzzApplyClusterMerge(f *testing.F) { f.Fuzz(func(t *testing.T, patchCount int, hostname string, data []byte) { defer fuzz.Finalize() fg := fuzz.New(t, data) patches := fuzz.Slice[*networking.EnvoyFilter_EnvoyConfigObjectPatch](fg, patchCount%30) proxy := fuzz.Struct[*model.Proxy](fg) mesh := fuzz.Struct[*meshconfig.MeshConfig](fg)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 17:09:02 UTC 2024 - 1.6K bytes - Viewed (0) -
tests/fuzz/status_fuzzer.go
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package fuzz import ( fuzz "github.com/AdaLogics/go-fuzz-headers" "istio.io/api/meta/v1alpha1" "istio.io/istio/pilot/pkg/status/distribution" ) // FuzzReconcileStatuses implements a fuzzer that targets
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 20 06:17:08 UTC 2022 - 1.3K bytes - Viewed (0)