Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 301 for typeOf (0.12 sec)

  1. operator/cmd/mesh/test-util_test.go

    	node := actual.(map[string]any)
    	got, f, err := tpath.GetPathContext(node, util.PathFromString(pv.path), false)
    	if err != nil || !f {
    		return false, err
    	}
    	if reflect.TypeOf(got.Node) != reflect.TypeOf(pv.value) {
    		return false, fmt.Errorf("comparison types don't match: got %v(%T), want %v(%T)", got.Node, got.Node, pv.value, pv.value)
    	}
    	if !reflect.DeepEqual(got.Node, pv.value) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/healthz/healthz_test.go

    			startedByInformerType: map[reflect.Type]bool{
    				reflect.TypeOf(corev1.Pod{}):     true,
    				reflect.TypeOf(corev1.Service{}): false,
    				reflect.TypeOf(corev1.Node{}):    true,
    			},
    		})
    
    		err := healthChecker.Check(nil)
    		if err == nil {
    			t.Errorf("expected error, got: %v", err)
    		}
    	})
    }
    
    type cacheSyncWaiterStub struct {
    	startedByInformerType map[reflect.Type]bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 15 20:43:16 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/scheme.go

    			panic(err)
    		}
    	}
    }
    
    // KnownTypes returns the types known for the given version.
    func (s *Scheme) KnownTypes(gv schema.GroupVersion) map[string]reflect.Type {
    	types := make(map[string]reflect.Type)
    	for gvk, t := range s.gvkToType {
    		if gv != gvk.GroupVersion() {
    			continue
    		}
    
    		types[gvk.Kind] = t
    	}
    	return types
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 25.2K bytes
    - Viewed (0)
  4. pkg/ctrlz/assets/static/js/prism-1.14.0.min.js

    m,l=0;m=h[l++];)m(g)}}},d=c.Token=function(f,g,h,l,m){this.type=f,this.content=g,this.alias=h,this.length=0|(l||'').length,this.greedy=!!m};if(d.stringify=function(f,g,h){if('string'==typeof f)return f;if('Array'===c.util.type(f))return f.map(function(q){return d.stringify(q,g,f)}).join('');var l={type:f.type,content:d.stringify(f.content,g,h),tag:'span',classes:['token',f.type],attributes:{},language:g,parent:h};if(f.alias){var m='Array'===c.util.type(f.alias)?f.alias:[f.alias];Array.prototype.push.app...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/FunctionExtractor.kt

                function.annotations.any { it is Adding } -> {
                    check(inType != null)
    
                    check(function.returnType != typeOf<Unit>() || configureLambdas.getTypeConfiguredByLambda(function.parameters.last().type) == null) {
                        "an @Adding function with a Unit return type may not accept configuring lambdas"
                    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 11:58:18 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  6. pkg/ctrlz/assets/static/js/popper-1.12.9.min.js

    /*
     Copyright (C) Federico Zivolo 2017
     Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top