- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 85 for fuzz (0.3 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
src/cmd/go/testdata/script/test_fuzz_cgo.txt
[!fuzz] skip [!cgo] skip [short] skip env GOCACHE=$WORK/cache # Test that fuzzing works with cgo (issue 65169) go test -fuzz=. -fuzztime=1x stdout ok ! stdout FAIL -- go.mod -- module example.com/p go 1.20 -- c.go -- package p import "C" -- c_test.go -- package p import "testing" func Fuzz(f *testing.F) { f.Add(0) f.Fuzz(func(t *testing.T, x int) {})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 12 15:10:50 UTC 2024 - 364 bytes - Viewed (0) -
pilot/pkg/networking/core/loadbalancer/fuzz_test.go
package loadbalancer import ( "testing" fuzz "github.com/AdaLogics/go-fuzz-headers" core "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" endpoint "github.com/envoyproxy/go-control-plane/envoy/config/endpoint/v3" "istio.io/api/networking/v1alpha3" ) func FuzzApplyLocalityLBSetting(f *testing.F) { f.Fuzz(func(t *testing.T, data []byte) { ff := fuzz.NewConsumer(data) proxyLabels := make(map[string]string)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 23 05:38:57 UTC 2024 - 1.8K bytes - Viewed (0) -
tests/integration/security/fuzz/fuzz_test.go
Run(func(t framework.TestContext) { ns := "fuzz-authz" namespace.ClaimOrFail(t, t, ns) t.ConfigIstio().YAML(ns, authzDenyPolicy).ApplyOrFail(t) t.Logf("authorization policy applied") deploy(t, dotdotpwn, ns, "fuzzers/dotdotpwn/dotdotpwn.yaml") t.ConfigIstio().File(ns, "fuzzers/wfuzz/wordlist.yaml").ApplyOrFail(t) deploy(t, wfuzz, ns, "fuzzers/wfuzz/wfuzz.yaml")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 12.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go
} } // checkFuzzCall checks the arguments of f.Fuzz() calls: // // 1. f.Fuzz() should call a function and it should be of type (*testing.F).Fuzz(). // 2. The called function in f.Fuzz(func(){}) should not return result. // 3. First argument of func() should be of type *testing.T // 4. Second argument onwards should be of type []byte, string, bool, byte, // rune, float32, float64, int, int8, int16, int32, int64, uint, uint8, uint16,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 14.4K bytes - Viewed (0)