- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 395 for typeOf (0.11 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation_test.go
} } // check that anything other than type and properties in metadata is forbidden tt = reflect.TypeOf(Structural{}) for i := 0; i < tt.NumField(); i++ { s := Structural{} x := reflect.ValueOf(&s).Elem() fuzzer.Fuzz(x.Field(i).Addr().Interface()) s.Type = "object" s.Properties = map[string]Structural{ "name": {}, "generateName": {}, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 18:20:00 UTC 2024 - 11.6K bytes - Viewed (0) -
security/pkg/pki/util/crypto_test.go
pem string keyType reflect.Type errMsg string }{ "Invalid PEM string": { pem: "Invalid PEM string", errMsg: "invalid PEM-encoded key", }, "Invalid PEM block type": { pem: certRSA, errMsg: "unsupported PEM block type for a private key: CERTIFICATE", }, "Parse RSA key": { pem: keyRSA, keyType: reflect.TypeOf(&rsa.PrivateKey{}), },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 13:00:07 UTC 2024 - 14.6K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/ConfigureLambdaHandler.kt
init { check(functionalInterface.java.isInterface) check(typeParameters.size <= 1) { "generic types with more than one type parameter are not supported" } } override fun getTypeConfiguredByLambda(type: KType): KType? = if (type.isSubtypeOf(starProjectedType)) type.arguments.firstOrNull()?.type ?: staticallyKnownConfiguredType else null
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 02 10:53:44 UTC 2024 - 6K bytes - Viewed (0) -
src/cmd/compile/internal/types/sizeof_test.go
{Sym{}, 32, 64}, {Type{}, 64, 104}, {Map{}, 12, 24}, {Forward{}, 20, 32}, {Func{}, 32, 56}, {Struct{}, 12, 24}, {Interface{}, 0, 0}, {Chan{}, 8, 16}, {Array{}, 12, 16}, {FuncArgs{}, 4, 8}, {ChanArgs{}, 4, 8}, {Ptr{}, 4, 8}, {Slice{}, 4, 8}, } for _, tt := range tests { want := tt._32bit if _64bit { want = tt._64bit } got := reflect.TypeOf(tt.val).Size()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 18 17:08:44 UTC 2024 - 1K bytes - Viewed (0) -
src/unique/clone_test.go
} func testCloneSeq[T any](t *testing.T, want cloneSeq) { typName := reflect.TypeFor[T]().Name() typ := abi.TypeOf(*new(T)) t.Run(typName, func(t *testing.T) { got := makeCloneSeq(typ) if !reflect.DeepEqual(got, want) { t.Errorf("unexpected cloneSeq for type %s: got %#v, want %#v", typName, got, want) } })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 18:14:07 UTC 2024 - 1K bytes - Viewed (0) -
src/runtime/sizeof_test.go
var tests = []struct { val any // type as a value _32bit uintptr // size on 32bit platforms _64bit uintptr // size on 64bit platforms }{ {runtime.G{}, 272, 432}, // g, but exported for testing {runtime.Sudog{}, 56, 88}, // sudog, but exported for testing } for _, tt := range tests { want := tt._32bit if _64bit { want = tt._64bit } got := reflect.TypeOf(tt.val).Size() if want != got {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 22:07:41 UTC 2024 - 892 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode.go
// Error on map keys that don't map to a field in the destination struct. ExtraReturnErrors: cbor.ExtraDecErrorUnknownField, // Decode maps into concrete type map[string]interface{} when the destination is an // interface{}. DefaultMapType: reflect.TypeOf(map[string]interface{}(nil)), // A CBOR text string whose content is not a valid UTF-8 sequence is well-formed but
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 10 14:03:36 UTC 2024 - 3.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/mutation/common/val.go
func (v *ObjectVal) ConvertToType(typeValue ref.Type) ref.Val { switch typeValue { case v.typeRef: return v case types.TypeType: return v.typeRef.CELType() } return types.NewErr("unsupported conversion into %v", typeValue) } // Equal returns true if the `other` value has the same type and content as the implementing struct.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 27 21:55:08 UTC 2024 - 4.2K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-provider/src/main/kotlin/org/gradle/internal/declarativedsl/common/DependencyCollectorFunctionExtractorAndRuntimeResolver.kt
?: RuntimeFunctionResolver.Resolution.Unresolved } /** * Gradle decoration does not generate correct Kotlin metadata for decorated Kotlin types. * Because of that, decorated types do not appear as subtypes of the original types when inspected with Kotlin reflection. * Workaround: use Java reflection to determine the supertypes.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 30 12:25:07 UTC 2024 - 8.4K bytes - Viewed (0) -
src/cmd/cgo/internal/testshared/testdata/depBase/dep.go
var V int = 1 var HasMask []string = []string{"hi"} type HasProg struct { array [1024]*byte } type Dep struct { X int } func (d *Dep) Method() int { // This code below causes various go.itab.* symbols to be generated in // the shared library. Similar code in ../exe/exe.go results in // exercising https://golang.org/issues/17594 reflect.TypeOf(os.Stdout).Elem() return 10 } func F() int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 14:52:41 UTC 2024 - 1K bytes - Viewed (0)