Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 240 for typeOff (0.12 sec)

  1. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_conversion_test.go

    			},
    			targetGV: schema.GroupVersion{Group: "foo", Version: "v1beta1"},
    			expectedErrFunc: func(err error) bool {
    				return reflect.DeepEqual(err, runtime.NewNotRegisteredErrForTarget(
    					scheme.Name(), reflect.TypeOf(testapigroupv1.Carp{}), schema.GroupVersion{Group: "foo", Version: "v1beta1"}))
    			},
    			expectedConvertedObject: nil,
    		},
    		{
    			name: "convert versioned unstructured to mismatching internal version should fail",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 07 15:19:26 UTC 2020
    - 16.4K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/DefaultNamedDomainObjectCollection.java

                                    return name;
                                }
    
                                @Override
                                public TypeOf<?> getPublicType() {
                                    return TypeOf.typeOf(getType());
                                }
                            };
                        }
                    });
                }
            };
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 16:54:51 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/converter.go

    }
    
    func newFieldsCache() *fieldsCache {
    	cache := &fieldsCache{}
    	cache.value.Store(make(fieldsCacheMap))
    	return cache
    }
    
    var (
    	mapStringInterfaceType = reflect.TypeOf(map[string]interface{}{})
    	stringType             = reflect.TypeOf(string(""))
    	fieldCache             = newFieldsCache()
    
    	// DefaultUnstructuredConverter performs unstructured to Go typed object conversions.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 16:02:13 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/rsc.io/markdown/parse.go

    		}
    		b.printMarkdown(buf, s)
    		prevEnd = b.Pos().EndLine
    		s.prefix1 = "" // item prefix only for first block
    	}
    }
    
    var (
    	blockType   = reflect.TypeOf(new(Block)).Elem()
    	blocksType  = reflect.TypeOf(new([]Block)).Elem()
    	inlinesType = reflect.TypeOf(new([]Inline)).Elem()
    )
    
    func printb(buf *bytes.Buffer, b Block, prefix string) {
    	fmt.Fprintf(buf, "(%T", b)
    	v := reflect.ValueOf(b)
    	v = reflect.Indirect(v)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. pkg/api/testing/unstructured_test.go

    		return
    	}
    
    	data, err = json.Marshal(unstr)
    	if err != nil {
    		t.Errorf("Error when marshaling unstructured: %v", err)
    		return
    	}
    	unmarshalledObj := reflect.New(reflect.TypeOf(item).Elem()).Interface()
    	err = json.Unmarshal(data, &unmarshalledObj)
    	if err != nil {
    		t.Errorf("Error when unmarshaling to object: %v", err)
    		return
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/ProjectAccessorsClassPathTest.kt

    import org.gradle.api.internal.plugins.ExtensionContainerInternal
    import org.gradle.api.internal.project.ProjectInternal
    import org.gradle.api.internal.tasks.TaskContainerInternal
    import org.gradle.api.reflect.TypeOf.parameterizedTypeOf
    import org.gradle.api.tasks.Delete
    import org.gradle.api.tasks.SourceSet
    import org.gradle.api.tasks.SourceSetContainer
    import org.gradle.api.tasks.TaskContainer
    import org.gradle.api.tasks.TaskProvider
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 26 19:59:56 UTC 2023
    - 18.5K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/ProjectExtensions.kt

     * @param configuration the configuration block.
     * @see [org.gradle.api.plugins.ExtensionAware]
     */
    inline fun <reified T : Any> Project.configure(noinline configuration: T.() -> Unit): Unit =
        typeOf<T>().let { type ->
            // Find and configure extension
            extensions.findByType(type)?.let(configuration)
                ?: Factory {
                    // Find and configure convention
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 09:50:04 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/coerce_test.go

    				orig, err := JSONPathValue(goodMetaMap, pth, 0)
    				if err != nil {
    					t.Fatalf("unexpected to not find something at %v: %v", pth, err)
    				}
    				if reflect.TypeOf(v) == reflect.TypeOf(orig) {
    					continue
    				}
    
    				// make a spurious map
    				spuriousMetaMap, err := runtime.DefaultUnstructuredConverter.ToUnstructured(fuzzedObjectMeta.DeepCopy())
    				if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  9. src/runtime/malloc_test.go

    	// Make sure there's at least one forced GC.
    	GC()
    
    	// Test that MemStats has sane values.
    	st := new(MemStats)
    	ReadMemStats(st)
    
    	nz := func(x any) error {
    		if x != reflect.Zero(reflect.TypeOf(x)).Interface() {
    			return nil
    		}
    		return fmt.Errorf("zero value")
    	}
    	le := func(thresh float64) func(any) error {
    		return func(x any) error {
    			// These sanity tests aren't necessarily valid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  10. pkg/util/iptables/testing/parse.go

    // preceded by whitespace)
    var wordRegex = regexp.MustCompile(`(?:^|\s)("[^"]*"|[^"]\S*)`)
    
    // Used by ParseRule
    var boolPtrType = reflect.PointerTo(reflect.TypeOf(true))
    var ipTablesValuePtrType = reflect.TypeOf((*IPTablesValue)(nil))
    
    // ParseRule parses rule. If strict is false, it will parse the recognized
    // parameters and ignore unrecognized ones. If it is true, parsing will fail if there are
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 11.6K bytes
    - Viewed (0)
Back to top