- Sort Score
- Result 10 results
- Languages All
Results 261 - 270 of 312 for buzz (0.04 sec)
-
pkg/test/failer.go
Log(args ...any) Logf(format string, args ...any) TempDir() string Helper() Cleanup(func()) Skip(args ...any) } // Fuzzer abstracts *testing.F type Fuzzer interface { Fuzz(ff any) Add(args ...any) } // errorWrapper is a Failer that can be used to just extract an `error`. This allows mixing // functions that take in a Failer and those that take an error.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Jul 15 23:58:50 UTC 2023 - 3.5K bytes - Viewed (0) -
src/cmd/internal/pgo/serialize_test.go
} sortByWeight(byWeight, d.NamedEdgeMap.Weight) d.NamedEdgeMap.ByWeight = byWeight return d } func FuzzRoundTrip(f *testing.F) { f.Add([]byte("")) // empty profile f.Fuzz(func(t *testing.T, b []byte) { d := constructFuzzProfile(t, b) testRoundTrip(t, d) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 20:20:01 UTC 2024 - 4.1K bytes - Viewed (0) -
src/go/doc/example.go
// example function, zero test, fuzz test, or benchmark function, and at // least one top-level function, type, variable, or constant declaration // other than the example function. func Examples(testFiles ...*ast.File) []*Example { var list []*Example for _, file := range testFiles { hasTests := false // file contains tests, fuzz test, or benchmarks
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 21.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/coerce_test.go
N := 1000 for i := 0; i < N; i++ { u := &unstructured.Unstructured{Object: map[string]interface{}{}} original := &metav1.ObjectMeta{} fuzzer.Fuzz(original) if err := SetObjectMeta(u.Object, original); err != nil { t.Fatalf("unexpected error setting ObjectMeta: %v", err) } o, _, err := GetObjectMeta(u.Object, false) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 12.7K bytes - Viewed (0) -
src/internal/fuzz/minimize_test.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin || freebsd || linux || windows package fuzz import ( "bytes" "context" "errors" "fmt" "reflect" "testing" "time" "unicode" "unicode/utf8" ) func TestMinimizeInput(t *testing.T) { type testcase struct { name string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 12 19:47:40 UTC 2022 - 4.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go
func (alwaysErrorTyper) Recognizes(gvk schema.GroupVersionKind) bool { return false } func TestUpdateToCreateOptions(t *testing.T) { f := fuzz.New() for i := 0; i < 100; i++ { t.Run(fmt.Sprintf("Run %d/100", i), func(t *testing.T) { update := &metav1.UpdateOptions{} f.Fuzz(update) create := updateToCreateOptions(update) b, err := json.Marshal(create) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 41.8K bytes - Viewed (0) -
src/encoding/gob/codec_test.go
package gob import ( "bytes" "errors" "flag" "math" "math/rand" "reflect" "strings" "testing" "time" "unsafe" ) var doFuzzTests = flag.Bool("gob.fuzz", false, "run the fuzz tests, which are large and very slow") // Guarantee encoding format by comparing some encodings to hand-written values type EncodeT struct { x uint64 b []byte } var encodeT = []EncodeT{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 19 23:03:14 UTC 2023 - 36.9K bytes - Viewed (0) -
src/cmd/go/internal/work/shell_test.go
f.Add([]byte(`"-lextra fun arg\\`)) f.Add([]byte(`broken flag\`)) f.Add([]byte(`extra broken flag \`)) f.Add([]byte(`\`)) f.Add([]byte(`"broken\"" "extra" \`)) f.Fuzz(func(t *testing.T, b []byte) { t.Parallel() if bytes.ContainsAny(b, "*?[#~%\x00{}!") { t.Skipf("skipping %#q: contains a sometimes-quoted character", b) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 15 15:30:05 UTC 2023 - 4.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/converter_test.go
// with the various validation directives (Ignore, Warn, Strict) func BenchmarkFromUnstructuredWithValidation(b *testing.B) { re := regexp.MustCompile("^I$") f := fuzz.NewWithSeed(1).NilChance(0.1).SkipFieldsWithPattern(re) iObj := &I{} f.Fuzz(&iObj) unstr, err := runtime.DefaultUnstructuredConverter.ToUnstructured(iObj) if err != nil { b.Fatalf("ToUnstructured failed: %v", err) return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 16:02:13 UTC 2023 - 22.9K bytes - Viewed (0) -
src/syscall/syscall_windows_test.go
f.Add("ねこ") // plane 0 f.Add("😃") // extra Plane 0 f.Add("\x90") // invalid byte f.Add("\xe3\x81") // truncated f.Add("\xe3\xc1\x81") // invalid middle byte f.Fuzz(func(t *testing.T, tst string) { res, err := syscall.UTF16FromString(tst) if err != nil { if strings.Contains(tst, "\x00") { t.Skipf("input %q contains a NUL byte", tst) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 17 16:33:09 UTC 2023 - 5.7K bytes - Viewed (0)