Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 987 for typeOf (0.15 sec)

  1. pkg/kube/krt/internal.go

    	// but often we will be operating on types generated by the controller itself.
    	// We should have a way to opt-in to RV comparison, but not default to it.
    
    	ap, ok := any(a).(proto.Message)
    	if ok {
    		if reflect.TypeOf(ap.ProtoReflect().Interface()) == reflect.TypeOf(ap) {
    			return proto.Equal(ap, any(b).(proto.Message))
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/roundtrip_test.go

    						t.Errorf("unexpected difference on roundtrip from interface{} to interface{}:\n%s", diff)
    					}
    				}
    
    				{
    					// original to original
    					final := reflect.New(reflect.TypeOf(original))
    					err = modePair.dec.Unmarshal(cborFromOriginal, final.Interface())
    					if err != nil {
    						t.Fatalf("unexpected error from Unmarshal into %T: %v", final.Interface(), err)
    					}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 21:48:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. src/main/webapp/js/admin/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: Fri Feb 07 10:28:50 UTC 2020
    - 185.8K bytes
    - Viewed (1)
  4. pkg/apis/scheduling/v1/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 Feb 08 10:11:23 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  5. src/encoding/asn1/marshal_test.go

    	"testing"
    	"time"
    )
    
    type intStruct struct {
    	A int
    }
    
    type twoIntStruct struct {
    	A int
    	B int
    }
    
    type bigIntStruct struct {
    	A *big.Int
    }
    
    type nestedStruct struct {
    	A intStruct
    }
    
    type rawContentsStruct struct {
    	Raw RawContent
    	A   int
    }
    
    type implicitTagTest struct {
    	A int `asn1:"implicit,tag:5"`
    }
    
    type explicitTagTest struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 10K bytes
    - Viewed (0)
  6. src/internal/reflectlite/type.go

    	return unsafe.Pointer(uintptr(p) + x)
    }
    
    // TypeOf returns the reflection Type that represents the dynamic type of i.
    // If i is a nil interface value, TypeOf returns nil.
    func TypeOf(i any) Type {
    	return toType(abi.TypeOf(i))
    }
    
    func (t rtype) Implements(u Type) bool {
    	if u == nil {
    		panic("reflect: nil type passed to Type.Implements")
    	}
    	if u.Kind() != Interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/inspect/inspect.go

    	Doc:              "optimize AST traversal for later passes",
    	URL:              "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/inspect",
    	Run:              run,
    	RunDespiteErrors: true,
    	ResultType:       reflect.TypeOf(new(inspector.Inspector)),
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    	return inspector.New(pass.Files), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. test/fixedbugs/issue27695b.go

    	// That return slot starts out holding a bad pointer.
    	return d()
    }
    
    //go:noinline
    func g(x uintptr) {
    }
    
    type T struct {
    }
    
    func (t *T) Foo() *byte {
    	runtime.GC()
    	return nil
    }
    
    func main() {
    	// Functions
    	d := reflect.MakeFunc(reflect.TypeOf(func() *byte { return nil }),
    		func(args []reflect.Value) []reflect.Value {
    			runtime.GC()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 29 20:25:24 UTC 2018
    - 1.3K bytes
    - Viewed (0)
  9. pkg/apis/core/install/install_test.go

    	for _, obj := range []runtime.Object{
    		&metav1.Status{},
    	} {
    		if unversioned, ok := legacyscheme.Scheme.IsUnversioned(obj); !unversioned || !ok {
    			t.Errorf("%v is expected to be unversioned", reflect.TypeOf(obj))
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 27 06:11:15 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  10. pkg/apis/scheduling/v1beta1/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 Feb 08 10:11:23 UTC 2022
    - 1.8K bytes
    - Viewed (0)
Back to top