Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 312 for buzz (0.07 sec)

  1. pkg/api/testing/copy_test.go

    				doDeepCopyTest(t, version.WithKind(kind), f)
    			}
    		}
    	}
    }
    
    func doDeepCopyTest(t *testing.T, kind schema.GroupVersionKind, f *fuzz.Fuzzer) {
    	item, err := legacyscheme.Scheme.New(kind)
    	if err != nil {
    		t.Fatalf("Could not create a %v: %s", kind, err)
    	}
    	f.Fuzz(item)
    	itemCopy := item.DeepCopyObject()
    	if !reflect.DeepEqual(item, itemCopy) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:45:31 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/test_fuzz_cleanup.txt

    [!fuzz] skip
    [short] skip
    env GOCACHE=$WORK/cache
    
    # Cleanup should run after F.Skip.
    go test -run=FuzzTargetSkip
    stdout cleanup
    
    # Cleanup should run after F.Fatal.
    ! go test -run=FuzzTargetFatal
    stdout cleanup
    
    # Cleanup should run after an unexpected runtime.Goexit.
    ! go test -run=FuzzTargetGoexit
    stdout cleanup
    
    # Cleanup should run after panic.
    ! go test -run=FuzzTargetPanic
    stdout cleanup
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_fuzz_return.txt

    [short] skip
    
    ! go test .
    stdout '^panic: testing: fuzz target must not return a value \[recovered\]$'
    
    -- go.mod --
    module test
    go 1.18
    -- x_test.go --
    package test
    
    import "testing"
    
    func FuzzReturnErr(f *testing.F) {
    	f.Add("hello, validation!")
    	f.Fuzz(func(t *testing.T, in string) string {
    		return in
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 16 16:06:39 UTC 2022
    - 314 bytes
    - Viewed (0)
  4. pilot/pkg/model/virtualservice_test.go

    			*r = networking.HTTPRewrite{}
    		},
    
    		func(r *durationpb.Duration, c fuzz.Continue) {
    			*r = durationpb.Duration{}
    		},
    		func(r *networking.HTTPRetry, c fuzz.Continue) {
    			*r = networking.HTTPRetry{}
    		},
    		func(r *networking.HTTPFaultInjection, c fuzz.Continue) {
    			*r = networking.HTTPFaultInjection{}
    		},
    		func(r *networking.Destination, c fuzz.Continue) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 60.6K bytes
    - Viewed (0)
  5. src/encoding/json/fuzz_test.go

    	f.Add([]byte(`{
    "object": {
    	"slice": [
    		1,
    		2.0,
    		"3",
    		[4],
    		{5: {}}
    	]
    },
    "slice": [[]],
    "string": ":)",
    "int": 1e5,
    "float": 3e-9"
    }`))
    
    	f.Fuzz(func(t *testing.T, b []byte) {
    		for _, typ := range []func() interface{}{
    			func() interface{} { return new(interface{}) },
    			func() interface{} { return new(map[string]interface{}) },
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 13 18:06:33 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  6. pkg/kubelet/stats/provider_test.go

    	}
    	return statsapi.VolumeStats{
    		FsStats: fsStats,
    		Name:    volumeName,
    	}
    }
    
    func generateCustomMetricSpec() []cadvisorapiv1.MetricSpec {
    	f := fuzz.New().NilChance(0).Funcs(
    		func(e *cadvisorapiv1.MetricSpec, c fuzz.Continue) {
    			c.Fuzz(&e.Name)
    			switch c.Intn(3) {
    			case 0:
    				e.Type = cadvisorapiv1.MetricGauge
    			case 1:
    				e.Type = cadvisorapiv1.MetricCumulative
    			case 2:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20K bytes
    - Viewed (0)
  7. pkg/api/testing/applyconfiguration_test.go

    			// those disappear.
    			func(s *api.PodSpec, c fuzz.Continue) {
    				c.FuzzNoCustom(s)
    				s.InitContainers = nil
    			},
    			func(s *api.PodStatus, c fuzz.Continue) {
    				c.FuzzNoCustom(s)
    				s.InitContainerStatuses = nil
    			},
    			// Apply configuration types do not have managed fields, so we exclude
    			// them in our fuzz test cases.
    			func(s *v1.ObjectMeta, c fuzz.Continue) {
    				c.FuzzNoCustom(s)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 05 20:12:50 UTC 2022
    - 7.3K bytes
    - Viewed (0)
  8. src/internal/fuzz/mem.go

    // Copyright 2020 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.
    
    package fuzz
    
    import (
    	"bytes"
    	"fmt"
    	"os"
    	"unsafe"
    )
    
    // sharedMem manages access to a region of virtual memory mapped from a file,
    // shared between multiple processes. The region includes space for a header and
    // a value of variable length.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 03:44:27 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  9. pkg/apis/admission/fuzzer/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 fuzzer
    
    import (
    	fuzz "github.com/google/gofuzz"
    
    	"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
    	"k8s.io/apimachinery/pkg/runtime"
    	runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 14 21:57:55 UTC 2019
    - 1.2K bytes
    - Viewed (0)
  10. src/internal/fuzz/sys_posix.go

    // Copyright 2020 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
    
    package fuzz
    
    import (
    	"fmt"
    	"os"
    	"os/exec"
    	"syscall"
    )
    
    type sharedMemSys struct{}
    
    func sharedMemMapFile(f *os.File, size int, removeOnClose bool) (*sharedMem, error) {
    	prot := syscall.PROT_READ | syscall.PROT_WRITE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 12 19:47:40 UTC 2022
    - 4.1K bytes
    - Viewed (0)
Back to top