Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for IntType (0.15 sec)

  1. src/cmd/compile/internal/ssa/branchelim_test.go

    	var testData = []struct {
    		arch    string
    		intType string
    		ok      bool
    	}{
    		{"arm64", "int32", true},
    		{"amd64", "int32", true},
    		{"amd64", "int8", false},
    	}
    
    	for _, data := range testData {
    		t.Run(data.arch+"/"+data.intType, func(t *testing.T) {
    			c := testConfigArch(t, data.arch)
    			boolType := c.config.Types.Bool
    			var intType *types.Type
    			switch data.intType {
    			case "int32":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 24 15:51:15 UTC 2018
    - 5.2K bytes
    - Viewed (0)
  2. test/typeparam/issue47710.go

    // license that can be found in the LICENSE file.
    
    package p
    
    type FooType[t any] interface {
    	Foo(BarType[t])
    }
    type BarType[t any] interface {
    	Int(IntType[t]) FooType[int]
    }
    
    type IntType[t any] int
    
    func (n IntType[t]) Foo(BarType[t]) {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 398 bytes
    - Viewed (0)
  3. subprojects/core-api/src/test/groovy/org/gradle/model/internal/core/ModelTypeTest.groovy

            def number = ModelType.of(Number)
            def intType = ModelType.of(Integer)
    
            object.isAssignableFrom(extendsNumber)
            number.isAssignableFrom(extendsNumber)
            !intType.isAssignableFrom(extendsNumber)
    
            object.isAssignableFrom(superNumber)
            !number.isAssignableFrom(superNumber)
            !intType.isAssignableFrom(superNumber)
    
            object.isAssignableFrom(anything)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 11 21:42:04 UTC 2018
    - 22.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/library/quantity.go

    	},
    	"asApproximateFloat": {
    		cel.MemberOverload("quantity_get_float", []*cel.Type{apiservercel.QuantityType}, cel.DoubleType, cel.UnaryBinding(quantityGetApproximateFloat)),
    	},
    	"asInteger": {
    		cel.MemberOverload("quantity_get_int", []*cel.Type{apiservercel.QuantityType}, cel.IntType, cel.UnaryBinding(quantityGetValue)),
    	},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/cel/library/lists.go

    	}),
    	"indexOf": {
    		cel.MemberOverload("list_a_index_of_int", []*cel.Type{cel.ListType(paramA), paramA}, cel.IntType,
    			cel.BinaryBinding(indexOf)),
    	},
    	"lastIndexOf": {
    		cel.MemberOverload("list_a_last_index_of_int", []*cel.Type{cel.ListType(paramA), paramA}, cel.IntType,
    			cel.BinaryBinding(lastIndexOf)),
    	},
    }
    
    func (*lists) CompileOptions() []cel.EnvOption {
    	options := []cel.EnvOption{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/types_test.go

    		t.Errorf("fail to get cel type: %s", err)
    	}
    	if expT.GetListType() == nil {
    		t.Errorf("got %v, wanted CEL list type", expT)
    	}
    }
    
    func TestTypes_MapType(t *testing.T) {
    	mp := NewMapType(StringType, IntType, -1)
    	if !mp.IsMap() {
    		t.Error("map type not identifiable as map")
    	}
    	if mp.TypeName() != "map" {
    		t.Errorf("got %s, wanted map", mp.TypeName())
    	}
    	if mp.DefaultValue() == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/composition.go

    	case cel.BytesType:
    		return apiservercel.BytesType
    	case cel.DoubleType:
    		return apiservercel.DoubleType
    	case cel.DurationType:
    		return apiservercel.DurationType
    	case cel.IntType:
    		return apiservercel.IntType
    	case cel.NullType:
    		return apiservercel.NullType
    	case cel.StringType:
    		return apiservercel.StringType
    	case cel.TimestampType:
    		return apiservercel.TimestampType
    	case cel.UintType:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 13 21:06:39 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  8. pkg/kubelet/stats/helper_test.go

    )
    
    func TestCustomMetrics(t *testing.T) {
    	spec := []cadvisorapiv1.MetricSpec{
    		{
    			Name:   "qos",
    			Type:   cadvisorapiv1.MetricGauge,
    			Format: cadvisorapiv1.IntType,
    			Units:  "per second",
    		},
    		{
    			Name:   "cpuLoad",
    			Type:   cadvisorapiv1.MetricCumulative,
    			Format: cadvisorapiv1.FloatType,
    			Units:  "count",
    		},
    	}
    	timestamp1 := time.Now()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 22 16:23:28 UTC 2020
    - 2.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/types.go

    	// determined at runtime rather than compile time.
    	DynType = NewSimpleTypeWithMinSize("dyn", cel.DynType, nil, 1)
    
    	// IntType is equivalent to the CEL 'int' type which is a 64-bit signed int.
    	IntType = NewSimpleTypeWithMinSize("int", cel.IntType, types.IntZero, MinNumberSize)
    
    	// NullType is equivalent to the CEL 'null_type'.
    	NullType = NewSimpleTypeWithMinSize("null_type", cel.NullType, types.NullValue, 4)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 15:52:31 UTC 2023
    - 18K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirBuiltInTypes.kt

        builtinTypes: BuiltinTypes,
        private val builder: KaSymbolByFirBuilder,
        override val token: KaLifetimeToken
    ) : KaBuiltinTypes() {
    
        override val int: KaType by cachedBuiltin(builtinTypes.intType)
        override val long: KaType by cachedBuiltin(builtinTypes.longType)
        override val short: KaType by cachedBuiltin(builtinTypes.shortType)
        override val byte: KaType by cachedBuiltin(builtinTypes.byteType)
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top