- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 75 for fuzz (0.04 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) -
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) -
subprojects/core/src/test/groovy/org/gradle/api/internal/collections/ListElementSourceTest.groovy
when: iterator = source.listIterator() iterator.add("bizz") then: source.iteratorNoFlush().collect() == ["bizz", "foo", "fuzz", "fizz", "bazz", "buzz"] and: source.iterator().collect() == ["bizz", "foo", "bar", "baz", "buzz", "fuzz", "fizz", "bazz", "buzz"] } def "listIterator can set elements"() { given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 13 05:06:48 UTC 2020 - 12.8K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_fuzz.txt
-- corpustesting/testdata/fuzz/FuzzPass/1 -- go test fuzz v1 []byte("00000") -- corpustesting/testdata/fuzz/FuzzPassString/1 -- go test fuzz v1 string("hello") -- corpustesting/testdata/fuzz/FuzzPanic/1 -- malformed -- corpustesting/testdata/fuzz/FuzzInNestedDir/anotherdir/1 -- go test fuzz v1 []byte("12345") -- corpustesting/testdata/fuzz/FuzzWrongType/1 -- go test fuzz v1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 16 16:53:11 UTC 2023 - 10.2K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
pkg/kubelet/server/stats/summary_test.go
f.Fuzz(&v.StartTime) f.Fuzz(v.CPU) f.Fuzz(v.Memory) return v } func getVolumeStats() *statsapi.VolumeStats { f := fuzz.New().NilChance(0) v := &statsapi.VolumeStats{} f.Fuzz(v) return v } func getNetworkStats() *statsapi.NetworkStats { f := fuzz.New().NilChance(0) v := &statsapi.NetworkStats{} f.Fuzz(v) return v } func getRlimitStats() *statsapi.RlimitStats {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 15.1K bytes - Viewed (0)