Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 170 for gofunc (0.09 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/convert_test.go

    import (
    	"math/rand"
    	"reflect"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	fuzz "github.com/google/gofuzz"
    
    	"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions"
    	apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
    	"k8s.io/apimachinery/pkg/util/json"
    )
    
    func TestStructuralRoundtripOrError(t *testing.T) {
    	f := fuzz.New()
    	seed := time.Now().UnixNano()
    	t.Logf("seed = %v", seed)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 23 02:09:41 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  2. pkg/api/testing/copy_test.go

    	"math/rand"
    	"reflect"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	fuzz "github.com/google/gofuzz"
    
    	"k8s.io/apimachinery/pkg/api/apitesting/fuzzer"
    	"k8s.io/apimachinery/pkg/api/apitesting/roundtrip"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/kubernetes/pkg/api/legacyscheme"
    )
    
    func TestDeepCopyApiObjects(t *testing.T) {
    	for i := 0; i < *roundtrip.FuzzIters; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:45:31 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/go.mod

    	github.com/fxamacker/cbor/v2 v2.7.0-beta
    	github.com/gogo/protobuf v1.3.2
    	github.com/golang/protobuf v1.5.4
    	github.com/google/gnostic-models v0.6.8
    	github.com/google/go-cmp v0.6.0
    	github.com/google/gofuzz v1.2.0
    	github.com/google/uuid v1.3.1
    	github.com/moby/spdystream v0.2.0
    	github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f
    	github.com/onsi/ginkgo/v2 v2.19.0
    	github.com/spf13/pflag v1.0.5
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 14:02:04 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. pkg/kubelet/server/stats/summary_windows_test.go

    	assert.Equal(summary.Pods, podStats)
    }
    
    func getFsStats() *statsapi.FsStats {
    	f := fuzz.New().NilChance(0)
    	v := &statsapi.FsStats{}
    	f.Fuzz(v)
    	return v
    }
    
    func getContainerStats() *statsapi.ContainerStats {
    	f := fuzz.New().NilChance(0)
    	v := &statsapi.ContainerStats{}
    	f.Fuzz(v)
    	return v
    }
    
    func getPodStats() *statsapi.PodStats {
    	containerStats := getContainerStats()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. pkg/apis/admissionregistration/fuzzer/fuzzer.go

    */
    
    package fuzzer
    
    import (
    	fuzz "github.com/google/gofuzz"
    
    	runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
    
    	"k8s.io/kubernetes/pkg/apis/admissionregistration"
    )
    
    // Funcs returns the fuzzer functions for the admissionregistration api group.
    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(obj *admissionregistration.Rule, c fuzz.Continue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 20 16:30:09 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. pkg/apis/storage/fuzzer/fuzzer.go

    import (
    	"fmt"
    
    	fuzz "github.com/google/gofuzz"
    
    	runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
    	api "k8s.io/kubernetes/pkg/apis/core"
    	"k8s.io/kubernetes/pkg/apis/storage"
    )
    
    // Funcs returns the fuzzer functions for the storage api group.
    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(obj *storage.StorageClass, c fuzz.Continue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 13:32:38 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/apis/example/fuzzer/fuzzer.go

    )
    
    // overrideMetaFuncs override some generic fuzzer funcs from k8s.io/apiserver in order to have more realistic
    // values in a Kubernetes context.
    func overrideMetaFuncs(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(j *runtime.Object, c fuzz.Continue) {
    			// TODO: uncomment when round trip starts from a versioned object
    			if true { //c.RandBool() {
    				*j = &runtime.Unknown{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 01 19:31:12 UTC 2018
    - 3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/apis/testapigroup/fuzzer/fuzzer.go

    )
    
    // overrideMetaFuncs override some generic fuzzer funcs from k8s.io/apimachinery in order to have more realistic
    // values in a Kubernetes context.
    func overrideMetaFuncs(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(j *runtime.Object, c fuzz.Continue) {
    			// TODO: uncomment when round trip starts from a versioned object
    			if true { //c.RandBool() {
    				*j = &runtime.Unknown{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 01 19:31:12 UTC 2018
    - 3.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/preserve-entry-func-names.mlir

    // RUN: tf-mlir-translate -mlir-to-graphdef %s -o - | FileCheck %s
    
    func.func @main(%arg0: tensor<10xi32>, %arg1: tensor<10xi32>) -> tensor<10xi32>
    attributes {tf.entry_function = {inputs = "foo,bar", outputs = "Add"}} {
      %graph = tf_executor.graph {
        // This node would be renamed to bar1 [note: if imported from TF graphdef this would not be possible]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 22:54:55 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/go.sum

    github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
    github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
    github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0=
    github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 14:02:04 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top