Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 170 for gofunc (0.31 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/v2/conversion_test.go

    func fuzzFuncs(f *fuzz.Fuzzer, refFunc func(ref *spec.Ref, c fuzz.Continue, visible bool)) {
    	invisible := 0 // == 0 means visible, > 0 means invisible
    	depth := 0
    	maxDepth := 3
    	nilChance := func(depth int) float64 {
    		return math.Pow(0.9, math.Max(0.0, float64(maxDepth-depth)))
    	}
    	updateFuzzer := func(depth int) {
    		f.NilChance(nilChance(depth))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 14:34:26 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal.go

    			return err
    		}
    	}
    	return nil
    }
    
    // AddFunc uses func as an equality function: it must take
    // two parameters of the same type, and return a boolean.
    func (e Equalities) AddFunc(eqFunc interface{}) error {
    	fv := reflect.ValueOf(eqFunc)
    	ft := fv.Type()
    	if ft.Kind() != reflect.Func {
    		return fmt.Errorf("expected func, got: %v", ft)
    	}
    	if ft.NumIn() != 2 {
    		return fmt.Errorf("expected two 'in' params, got: %v", ft)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 20 17:18:42 UTC 2022
    - 10.8K bytes
    - Viewed (0)
  3. src/go/types/stmt.go

    		assert(typ.Recv() == nil)
    		switch {
    		case typ.Params().Len() != 1:
    			return bad("func must be func(yield func(...) bool): wrong argument count")
    		case toSig(typ.Params().At(0).Type()) == nil:
    			return bad("func must be func(yield func(...) bool): argument is not func")
    		case typ.Results().Len() != 0:
    			return bad("func must be func(yield func(...) bool): unexpected results")
    		}
    		cb := toSig(typ.Params().At(0).Type())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  4. pkg/apis/apps/fuzzer/fuzzer.go

    */
    
    package fuzzer
    
    import (
    	"fmt"
    
    	fuzz "github.com/google/gofuzz"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
    	"k8s.io/apimachinery/pkg/util/intstr"
    	"k8s.io/kubernetes/pkg/apis/apps"
    )
    
    // Funcs returns the fuzzer functions for the apps api group.
    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  5. LICENSES/vendor/github.com/google/gofuzz/LICENSE

    = vendor/github.com/google/gofuzz licensed under: =
    
    
                                     Apache License
                               Version 2.0, January 2004
                            http://www.apache.org/licenses/
    
       TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
    
       1. Definitions.
    
          "License" shall mean the terms and conditions for use, reproduction,
          and distribution as defined by Sections 1 through 9 of this document.
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 08 04:49:00 UTC 2020
    - 11.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/fuzzer/fuzzer.go

    	"strings"
    
    	fuzz "github.com/google/gofuzz"
    
    	"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
    	"k8s.io/utils/pointer"
    )
    
    var swaggerMetadataDescriptions = metav1.ObjectMeta{}.SwaggerDoc()
    
    // Funcs returns the fuzzer functions for the apiextensions apis.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/apis/kubeadm/fuzzer/fuzzer.go

    	kubeadm.SetDefaultTimeouts(&obj.Timeouts)
    }
    
    func fuzzNodeRegistration(obj *kubeadm.NodeRegistrationOptions, 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.IgnorePreflightErrors = nil
    	obj.ImagePullSerial = ptr.To(true)
    }
    
    func fuzzClusterConfiguration(obj *kubeadm.ClusterConfiguration, c fuzz.Continue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 13 06:41:07 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/dom_test.go

    	"testing"
    )
    
    func BenchmarkDominatorsLinear(b *testing.B)     { benchmarkDominators(b, 10000, genLinear) }
    func BenchmarkDominatorsFwdBack(b *testing.B)    { benchmarkDominators(b, 10000, genFwdBack) }
    func BenchmarkDominatorsManyPred(b *testing.B)   { benchmarkDominators(b, 10000, genManyPred) }
    func BenchmarkDominatorsMaxPred(b *testing.B)    { benchmarkDominators(b, 10000, genMaxPred) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/cli-runtime/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
    - 25.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-input-func-arg-name-collision.pbtxt

    # This check that we don't error out when importing GraphDef containing
    # functions with arg name that are the same as the graph input name
    
    # CHECK: func @main(%arg0: tensor<{{.*}}i32>) -> tensor<{{.*}}i32>
    # CHECK: func private @while_body
    # CHECK: func private @while_cond
    
    node {
      name: "input"
      op: "Placeholder"
      attr {
        key: "_user_specified_name"
        value {
          s: "input"
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 11 19:14:04 UTC 2020
    - 4.8K bytes
    - Viewed (0)
Back to top