Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 301 for typeOf (0.11 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/roundtrip.go

    // using the given codec.  The round-trip test ensures that an object can be
    // deep-copied, converted, marshaled and back without loss of data.
    //
    // For internal types this means
    //
    //	internal -> external -> json/protobuf -> external -> internal.
    //
    // For external types this means
    //
    //	external -> json/protobuf -> external.
    func roundTrip(t *testing.T, scheme *runtime.Scheme, codec runtime.Codec, object runtime.Object) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  2. schema/field.go

    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/utils"
    )
    
    // special types' reflect type
    var (
    	TimeReflectType    = reflect.TypeOf(time.Time{})
    	TimePtrReflectType = reflect.TypeOf(&time.Time{})
    	ByteReflectType    = reflect.TypeOf(uint8(0))
    )
    
    type (
    	// DataType GORM data type
    	DataType string
    	// TimeType GORM time type
    	TimeType int64
    )
    
    // GORM time types
    const (
    	UnixTime        TimeType = 1
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
  3. src/go/types/api.go

    	return tv.mode == commaok || tv.mode == mapindex
    }
    
    // Instance reports the type arguments and instantiated type for type and
    // function instantiations. For type instantiations, [Type] will be of dynamic
    // type *[Named]. For function instantiations, [Type] will be of dynamic type
    // *Signature.
    type Instance struct {
    	TypeArgs *TypeList
    	Type     Type
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/conversion_test.go

    	}
    
    	for _, tc := range testcases {
    		aType := reflect.TypeOf(tc.a)
    		bType := reflect.TypeOf(tc.b)
    		t.Run(aType.String(), func(t *testing.T) {
    			assertEqualTypes(t, nil, aType, bType)
    		})
    	}
    }
    
    func assertEqualTypes(t *testing.T, path []string, a, b reflect.Type) {
    	if a == b {
    		return
    	}
    
    	if a.Kind() != b.Kind() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  5. subprojects/core-api/src/main/java/org/gradle/model/internal/type/ModelType.java

                throw new IllegalArgumentException("cannot wrap type of type " + type.getClass());
            }
        }
    
        static TypeWrapper[] toWrappers(Type[] types) {
            if (types.length == 0) {
                return EMPTY_TYPE_WRAPPER_ARRAY;
            } else {
                TypeWrapper[] wrappers = new TypeWrapper[types.length];
                int i = 0;
                for (Type type : types) {
                    wrappers[i++] = wrap(type);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. pkg/apis/autoscaling/v2/defaults_test.go

    			stabilizationSeconds:         utilpointer.Int32(25),
    			selectPolicy:                 &maxPolicy,
    			expectedPolicies: []autoscalingv2.HPAScalingPolicy{
    				{Type: autoscalingv2.PodsScalingPolicy, Value: 1, PeriodSeconds: 2},
    				{Type: autoscalingv2.PercentScalingPolicy, Value: 3, PeriodSeconds: 4},
    			},
    			expectedStabilization: utilpointer.Int32(25),
    			expectedSelectPolicy:  string(autoscalingv2.MaxChangePolicySelect),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  7. src/net/http/transfer.go

    	return
    }
    
    var nopCloserType = reflect.TypeOf(io.NopCloser(nil))
    var nopCloserWriterToType = reflect.TypeOf(io.NopCloser(struct {
    	io.Reader
    	io.WriterTo
    }{}))
    
    // unwrapNopCloser return the underlying reader and true if r is a NopCloser
    // else it return false.
    func unwrapNopCloser(r io.Reader) (underlyingReader io.Reader, isNopCloser bool) {
    	switch reflect.TypeOf(r) {
    	case nopCloserType, nopCloserWriterToType:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/AccessorFragments.kt

        is TypeAccessibility.Accessible -> typeAccessibility.run { type.kmType to internalName() }
        is TypeAccessibility.Inaccessible -> KotlinType.any to InternalNameOf.javaLangObject
    }
    
    
    private
    val SchemaType.kmType: KmType
        get() = value.kmType
    
    
    private
    val TypeOf<*>.kmType: KmType
        get() = when {
            isParameterized -> genericTypeOf(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:46 UTC 2024
    - 40.2K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl-tooling-builders/src/main/kotlin/org/gradle/kotlin/dsl/tooling/builders/KotlinBuildScriptModelBuilder.kt

        sourceSets?.find { file in it.allSource }?.let {
            EnclosingSourceSet(this, it)
        }
    
    
    private
    val Project.sourceSets
        get() = extensions.findByType(typeOf<SourceSetContainer>())
    
    
    private
    fun precompiledScriptPluginModelBuilder(
        scriptFile: File,
        enclosingSourceSet: EnclosingSourceSet,
        modelRequestProject: Project
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 11:06:08 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/internal/driver/config.go

    func (cfg *config) get(f configField) string {
    	switch ptr := cfg.fieldPtr(f).(type) {
    	case *string:
    		return *ptr
    	case *int:
    		return fmt.Sprint(*ptr)
    	case *float64:
    		return fmt.Sprint(*ptr)
    	case *bool:
    		return fmt.Sprint(*ptr)
    	}
    	panic(fmt.Sprintf("unsupported config field type %v", f.field.Type))
    }
    
    // set sets the value of field f in cfg to value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top