Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 170 for gofunc (0.24 sec)

  1. src/debug/elf/symbols_test.go

    // license that can be found in the LICENSE file.
    
    package elf
    
    import (
    	"io"
    	"path"
    	"reflect"
    	"testing"
    )
    
    // TODO: remove duplicate code
    func TestSymbols(t *testing.T) {
    	do := func(file string, ts []Symbol, getfunc func(*File) ([]Symbol, error)) {
    		var f *File
    		var err error
    		if path.Ext(file) == ".gz" {
    			var r io.ReaderAt
    			if r, err = decompress(file); err == nil {
    				f, err = NewFile(r)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 05 18:18:26 UTC 2019
    - 13.4K bytes
    - Viewed (0)
  2. pkg/apis/autoscaling/fuzzer/fuzzer.go

    import (
    	fuzz "github.com/google/gofuzz"
    
    	"k8s.io/apimachinery/pkg/api/resource"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
    	"k8s.io/kubernetes/pkg/apis/autoscaling"
    	api "k8s.io/kubernetes/pkg/apis/core"
    	"k8s.io/utils/pointer"
    )
    
    // Funcs returns the fuzzer functions for the autoscaling api group.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 15 06:03:59 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/annotate_parameter_replication.cc

            mirrored_replicate_args.insert(
                mlir::cast<IntegerAttr>(mirrored_index).getInt());
          }
        }
        auto func =
            llvm::cast<func::FuncOp>(m.lookupSymbol(cluster_func.getFunc()));
        for (auto entry : llvm::enumerate(cluster_func.getOperands())) {
          auto operand = SkipIdentityAndReadVariable(entry.value());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. src/text/template/funcs.go

    }
    
    // addFuncs adds to values the functions in funcs. It does no checking of the input -
    // call addValueFuncs first.
    func addFuncs(out, in FuncMap) {
    	for name, fn := range in {
    		out[name] = fn
    	}
    }
    
    // goodFunc reports whether the function or method has the right result signature.
    func goodFunc(name string, typ reflect.Type) error {
    	// We allow functions with 1 result or 2 results where the second is an error.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  5. pkg/apis/networking/fuzzer/fuzzer.go

    import (
    	"fmt"
    	"net/netip"
    
    	fuzz "github.com/google/gofuzz"
    	runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
    	"k8s.io/kubernetes/pkg/apis/networking"
    	utilpointer "k8s.io/utils/pointer"
    )
    
    // Funcs returns the fuzzer functions for the networking api group.
    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(np *networking.NetworkPolicyPeer, c fuzz.Continue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. pkg/kubelet/apis/config/fuzzer/fuzzer.go

    	utilpointer "k8s.io/utils/pointer"
    )
    
    // Funcs returns the fuzzer functions for the kubeletconfig apis.
    func Funcs(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		// provide non-empty values for fields with defaults, so the defaulter doesn't change values during round-trip
    		func(obj *kubeletconfig.KubeletConfiguration, c fuzz.Continue) {
    			c.FuzzNoCustom(obj)
    			obj.EnableServer = true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:55:59 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. pkg/registry/rbac/helpers_test.go

    	fuzz "github.com/google/gofuzz"
    )
    
    func newPod() *kapi.Pod {
    	return &kapi.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Annotations:     map[string]string{},
    			Name:            "foo",
    			OwnerReferences: []metav1.OwnerReference{},
    		},
    	}
    
    }
    
    func TestIsOnlyMutatingGCFields(t *testing.T) {
    	tests := []struct {
    		name     string
    		obj      func() runtime.Object
    		old      func() runtime.Object
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 05 20:12:50 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/tpu-multiple-while-body-func.mlir

      "func.func"() ({
      ^bb0(%arg0: tensor<i32>):
        "func.return"(%arg0) : (tensor<i32>) -> ()
      }) {sym_name = "main_while_body_4225150", sym_visibility = "private", tf._input_shapes = [#tf_type.shape<>], tf.signature.is_stateful, function_type = (tensor<i32>) -> (tensor<i32>)} : () -> ()
      "func.func"() ({
      ^bb0(%arg0: tensor<i32>):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 13 21:23:47 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. pkg/api/testing/fuzzer.go

    )
    
    // overrideGenericFuncs override some generic fuzzer funcs from k8s.io/apiserver in order to have more realistic
    // values in a Kubernetes context.
    func overrideGenericFuncs(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: Thu Nov 10 19:08:24 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/fuzzer/fuzzer.go

    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    func genericFuzzerFuncs(codecs runtimeserializer.CodecFactory) []interface{} {
    	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())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 15:12:26 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top