Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 987 for typeOf (0.17 sec)

  1. pkg/apis/resource/v1alpha2/defaults_test.go

    		return nil
    	}
    	obj2, err := runtime.Decode(codec, data)
    	if err != nil {
    		t.Errorf("%v\nData: %s\nSource: %#v", err, string(data), obj)
    		return nil
    	}
    	obj3 := reflect.New(reflect.TypeOf(obj).Elem()).Interface().(runtime.Object)
    	err = legacyscheme.Scheme.Convert(obj2, obj3, nil)
    	if err != nil {
    		t.Errorf("%v\nSource: %#v", err, obj2)
    		return nil
    	}
    	return obj3
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 06:52:03 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/tasks/properties/ValidationActions.java

            switch (type) {
                case FILE:
                    return INPUT_FILE_VALIDATOR;
                case DIRECTORY:
                    return INPUT_DIRECTORY_VALIDATOR;
                case FILES:
                    return NO_OP;
                default:
                    throw new AssertionError("Unknown input property type " + type);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 11:49:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  3. tests/fuzz/crd_roundtrip_fuzzer.go

    func roundTrip(codec runtime.Codec, object runtime.Object) {
    	printer := spew.ConfigState{DisableMethods: true}
    
    	// deep copy the original object
    	object = object.DeepCopyObject()
    	name := reflect.TypeOf(object).Elem().Name()
    
    	// encode (serialize) the deep copy using the provided codec
    	data, err := runtime.Encode(codec, object)
    	if err != nil {
    		return
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 01 01:34:15 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  4. test/arenas/smoke.go

    			log.Fatalf("bad sl[j] value: got %d, want %d", *sl[j], iValue)
    		}
    	}
    
    	t := reflect.TypeOf(int(0))
    	v := reflect.ArenaNew(a, t)
    	if want := reflect.PointerTo(t); v.Type() != want {
    		log.Fatalf("unexpected type for arena-allocated value: got %s, want %s", v.Type(), want)
    	}
    	i2 := v.Interface().(*int)
    	*i2 = iValue
    
    	if *i2 != iValue {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 16 17:08:43 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/runtime/codec.go

    }
    
    // SerializerInfoForMediaType returns the first info in types that has a matching media type (which cannot
    // include media-type parameters), or the first info with an empty media type, or false if no type matches.
    func SerializerInfoForMediaType(types []SerializerInfo, mediaType string) (SerializerInfo, bool) {
    	for _, info := range types {
    		if info.MediaType == mediaType {
    			return info, true
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 03:20:30 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  6. src/main/webapp/js/bootstrap.min.js.map

    ...Default,\n        ...$(this).data()\n      }\n\n      if (typeof config === 'object') {\n        _config = {\n          ..._config,\n          ...config\n        }\n      }\n\n      const action = typeof config === 'string' ? config : _config.slide\n\n      if (!data) {\n        data = new Carousel(this, _config)\n        $(this).data(DATA_KEY, data)\n      }\n\n      if (typeof config === 'number') {\n        data.to(config)\n      } else if (typeof action === 'string') {\n        if (typeof data[action]...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Sat Jan 11 06:54:28 UTC 2020
    - 189.9K bytes
    - Viewed (0)
  7. src/internal/goexperiment/mkconsts.go

    			log.Fatalf("%s: expected generated file", name)
    		}
    		if err := os.Remove(name); err != nil {
    			log.Fatal(err)
    		}
    	}
    
    	// Generate new experiment constant files.
    	rt := reflect.TypeOf(&goexperiment.Flags{}).Elem()
    	for i := 0; i < rt.NumField(); i++ {
    		f := rt.Field(i).Name
    		buildTag := "goexperiment." + strings.ToLower(f)
    		for _, val := range []bool{false, true} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testgodefs/testdata/main.go

    	// know how a bitfield should correspond to a Go type, even if
    	// it appears to be aligned correctly.
    	bitfieldType := reflect.TypeOf(bitfields{})
    	check := func(name string) {
    		_, ok := bitfieldType.FieldByName(name)
    		if ok {
    			fmt.Fprintf(os.Stderr, "found unexpected bitfields field %s\n", name)
    			pass = false
    		}
    	}
    	check("Short1")
    	check("Short2")
    	check("Short3")
    
    	if !pass {
    		os.Exit(1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. operator/pkg/util/reflect_test.go

    		for vidx, v := range allTypes {
    			if got, want := tt.function(reflect.TypeOf(v)), isInListOfInterface(tt.okTypes, v); got != want {
    				t.Errorf("%s with %s (#%d): got: %t, want: %t", tt.desc, reflect.TypeOf(v), vidx, got, want)
    			}
    		}
    	}
    }
    
    type interfaceContainer struct {
    	I anInterface
    }
    
    type anInterface interface {
    	IsU()
    }
    
    type implementsInterface struct {
    	A string
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 10.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/httplog/httplog_test.go

    				t.Errorf("Unexpected error: %v", err)
    			}
    
    			var handler http.Handler
    			handler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    				switch v := w.(type) {
    				case *respLogger:
    					t.Errorf("Did not expect %v", reflect.TypeOf(v))
    					return
    				default:
    				}
    
    				//lint:file-ignore SA1019 Keep supporting deprecated http.CloseNotifier
    				if _, ok := w.(http.CloseNotifier); !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 05 18:05:09 UTC 2021
    - 6.2K bytes
    - Viewed (0)
Back to top