Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 301 for typeOf (0.31 sec)

  1. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/ProjectExtensions.kt

    
    /**
     * Creates a [Task] with the given [name] and [type], configures it with the given [configuration] action,
     * and adds it to this project tasks container.
     */
    inline fun <reified type : Task> Project.task(name: String, noinline configuration: type.() -> Unit) =
        task(name, type::class, configuration)
    
    
    /**
     * Creates a [Task] with the given [name] and [type], and adds it to this project tasks container.
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 09:50:04 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/coerce_test.go

    			for _, v := range spuriousValues() {
    				// skip values of same type, because they can only cause decoding errors further insides
    				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
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  3. src/runtime/malloc_test.go

    		"GCCPUFraction": {le(0.99)}, "EnableGC": {eq(true)}, "DebugGC": {eq(false)},
    		"BySize": nil,
    	}
    
    	rst := reflect.ValueOf(st).Elem()
    	for i := 0; i < rst.Type().NumField(); i++ {
    		name, val := rst.Type().Field(i).Name, rst.Field(i).Interface()
    		checks, ok := fields[name]
    		if !ok {
    			t.Errorf("unknown MemStats field %s", name)
    			continue
    		}
    		for _, check := range checks {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  4. 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)
  5. src/net/netip/fuzz_test.go

    	buf2 = x.AppendTo(buf2)
    	if !bytes.Equal(buf, buf2) {
    		t.Fatalf("%v: MarshalText = %q, AppendTo = %q", x, buf, buf2)
    	}
    }
    
    type netipType interface {
    	encoding.BinaryMarshaler
    	encoding.TextMarshaler
    	fmt.Stringer
    	IsValid() bool
    }
    
    type netipTypeCmp interface {
    	comparable
    	netipType
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 20 23:46:23 UTC 2021
    - 10.5K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/factories/NormalizingExcludeFactory.java

            }
            if (flattened.result.isEmpty()) {
                return nothing();
            }
            Map<UnionOf, List<ExcludeSpec>> byType = flattened.result.stream().collect(Collectors.groupingBy(UnionOf::typeOf));
            List<ModuleIdExclude> moduleIdExcludes = UnionOf.MODULEID.fromMap(byType);
            List<ModuleIdSetExclude> moduleIdSetsExcludes = UnionOf.MODULEID_SET.fromMap(byType);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 17.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GradleKotlinDslIntegrationTest.kt

                    override fun apply(project: Project): Unit = project.run {
                        extensions.add(typeOf<MutableMap<String, String>>(), "mapOfString", mutableMapOf("foo" to "bar"))
                        extensions.add(typeOf<MutableMap<String, Int>>(), "mapOfInt", mutableMapOf("deep" to 42))
                        extensions.add(typeOf<NamedDomainObjectContainer<Book>>(), "books", container(Book::class))
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 18:26:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  8. src/unsafe/unsafe.go

    // part of the unsafe package. It represents any arbitrary integer type.
    type IntegerType int
    
    // Pointer represents a pointer to an arbitrary type. There are four special operations
    // available for type Pointer that are not available for other types:
    //   - A pointer value of any type can be converted to a Pointer.
    //   - A Pointer can be converted to a pointer value of any type.
    //   - A uintptr can be converted to a Pointer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:45:20 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. src/math/rand/v2/regress_test.go

    	n := reflect.TypeOf(New(NewPCG(1, 2))).NumMethod()
    	p := 0
    	var buf bytes.Buffer
    	if *update {
    		fmt.Fprintf(&buf, "var regressGolden = []any{\n")
    	}
    	for i := 0; i < n; i++ {
    		if *update && i > 0 {
    			fmt.Fprintf(&buf, "\n")
    		}
    		r := New(NewPCG(1, 2))
    		rv := reflect.ValueOf(r)
    		m := rv.Type().Method(i)
    		mv := rv.Method(i)
    		mt := mv.Type()
    		if mt.NumOut() == 0 {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:03:11 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  10. pkg/apis/networking/v1/defaults_test.go

    	}
    	obj2, err := runtime.Decode(legacyscheme.Codecs.UniversalDecoder(), 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: Thu Jan 05 10:48:05 UTC 2023
    - 9.8K bytes
    - Viewed (0)
Back to top